Closed TrygveUrdahl closed 9 months ago
This seems to have started working again. As far as I know, only the Angular monorepo has been updated (to 17.0.9
), no changes to VScode or anything else.
Never mind, somehow the problem is still here. I must have seen wrong when I closed the issue.
Now using version 17.1.0
of the Angular monorepo.
Yeah I'm having this exact same problem and it's annoying as all hell :v
Ran into this as well. As a workaround wrapping the $any cast around with another set of brackets seems to help.
This looks like a conflict with the Vue extension, which is capturing the terminating character of the function call and making it punctuation.attribute-shorthand.bind.html.vue
. If you are using Vue for syntax highlighting as well, this can be resolved by disabling the Vue extension. Closing, as this is unrelated to the Angular extension.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
🐞 bug report
Is this a regression?
I believe this used to work, however it does not work with versions of the Angular Language Service >=16.0.0 as far as I have tested.
Description
In an Angular template, cast an
$event
with$any()
and then index into it (e.g.$any($event).detail.value
, if you only do$any($event)
it still works), and the syntax highlighting breaks from that point on in the document.Bug Type
What does this bug affect
Reproduction
Steps to reproduce the behavior: In an Angular template, cast an
$event
with$any()
, and the syntax highlighting breaks.Screenshots
Not working:
Same code, just without the
$any($event)
:🌍 Your Environment
Angular Version:
Extension Version:
VSCode Version:
Operating System: