Skip to content

Extension should not activate in normal HTML. #21

@Kiiyya

Description

@Kiiyya

A bit related to issue #15.

What I did:
I am editing a normal HTML file, which is not a template.
I press CTRL-/ to create a comment.
As a result, I get a Tera comment, not a HTML comment. This is bad.
I look at the langauge in VSCode, and it is "HTML".

My problems:

  1. The langauge in VSCode shows "HTML".
  2. It is not possible to choose "Vanilla HTML", as now Tera HTML claims the "HTML" language in the language chooser. The only option is to disable the whole Tera extension.

Solutions I recommend:

  1. Do not touch the "HTML" language option in the language picker, and instead add a "HTML (Tera)" language option.
  2. Make the "HTML (Tera)" language option auto-activate only when the file extension is foo.html.tera or something like that.

Would be cool, thanks for making this extension :).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions