This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Commit cd35a52
authored
fix: avoid showing MISSING: command for code lens in templates (#1370)
When we do not provide a command in the code lens resolve request,
VSCode will show `!!MISSING: command!!`. Instead, we throw an error and
VSCode will simply show "no commands". It is documented that the
resolution of a code lens can throw an error here:
https://microsoft.github.io/language-server-protocol/specification#codeLens_resolve
In addition, this change ensures that the html file is part of an
angular project before returning a code lens in the first place.
Fixes #13681 parent a4f1eb9 commit cd35a52
1 file changed
+15
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | 309 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
327 | 324 | | |
328 | 325 | | |
329 | 326 | | |
| |||
0 commit comments