This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Commit 2cf7b96
Keen Yee Liau
fix: use LocationLink for onDefinition
Before this, lsp.Location[] is returned by onDefinition, and the results
do not contain the originSelectionRange.
If user hovers over templateUrl for example, they'd see
```
@component({
templateUrl: './app.component.html',
})
class AppComponent {}
```
`app`, `component`, and `html` highlighted separately.
Returning lsp.LocationLink[] solves this issue.1 parent 0087dd7 commit 2cf7b96
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
| 174 | + | |
174 | 175 | | |
175 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
0 commit comments