Repository navigation
Commit 8f8dce4
committed
Use first definition's URI and range start as search location when finding referencing files
- clicking on a local import alias e.g. 'UiStatusBar' should list references of StatusBar
└── apps
└── editor
└── src
├── commands
│ ├── select-definition-file-command.ts
│ └── select-referencing-files-commands
│ ├── index.ts
│ ├── select-referencing-files-commands.ts
│ └── utils
│ ├── get-referencing-files-for-position.ts
│ ├── get-referencing-files-for-uris.ts
│ └── prompt-for-referencing-files.ts
└── views
└── prompt
└── frontend
└── Main
└── MainView
└── MainView.tsx1 parent ede4195 commit 8f8dce4
1 file changed
Lines changed: 19 additions & 2 deletions
File tree
- apps/editor/src/commands/select-referencing-files-commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| |||
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
138 | 155 | | |
139 | 156 | | |
140 | 157 | | |
141 | | - | |
142 | | - | |
| 158 | + | |
| 159 | + | |
143 | 160 | | |
144 | 161 | | |
145 | 162 | | |
| |||
0 commit comments