Skip to content

[Feature request] Highlighting within inline templates #2078

Open
@christophbuehler

Description

@christophbuehler

🚀 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

  • Angular Language Service VSCode extension
  • Angular Language Service server

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 that should change the language mode of template strings with moderate success.

Anything else relevant?

How it is:
image
What I would expect:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions