angular / vscode-ng-language-service

Angular extension for Visual Studio Code
MIT License
779 stars 117 forks source link

[Feature request] Highlighting within inline templates #2078

Open christophbuehler opened 2 months ago

christophbuehler commented 2 months ago

πŸš€ feature request

Description

When the cursor is placed on any tag within an inline template, the entire template is highlighted. In external HTML templates, just the opening and the closing tag are highlighted. I assume this is the case because the language mode of the file is set to TypeScript, not HTML. I find this very annoying.

Feature Type

What does this bug affect

Describe the solution you'd like

Ideally the language mode of inline templates would be set to HTML.

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds? I have tried using other extensions, like [Inline HTML](https://marketplace.visualstudio.com/items?itemName=pushqrdx.inline-html) that should change the language mode of template strings with moderate success. ### Anything else relevant?

How it is:

image

What I would expect:

image