Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html auto close tag does not work with this extention #3

Open
MadGeorge opened this issue Sep 6, 2019 · 2 comments
Open

Html auto close tag does not work with this extention #3

MadGeorge opened this issue Sep 6, 2019 · 2 comments

Comments

@MadGeorge
Copy link

Hello. THank you for this plugin.

I faced problem to setup VS Code to work with both - Stencil and Html in the same file.

In case of

"files.associations": {
        "*.html.stencil": "stencil-html"
    }

Stencil markup autocompletion works well, but html tags auto close feature does not.

In case of

"files.associations": {
        "*.html.stencil": "html"
    }

html auto close tags works, but stencil markup does not.

How to force it to work in both ways?

VC Code v. 1.38.0, Stencil extension installed through extensions catalog.

@svanimpe
Copy link
Member

svanimpe commented Sep 6, 2019

It's been a while since I've worked on this, but I believe "*.html.stencil": "html" means you consider files with an .html.stencil extension as HTML files (with no Stencil support). If you want to use the .html extension for Stencil/HTML files, use "*.html": "stencil-html".

@MadGeorge
Copy link
Author

@svanimpe thank you, it helps. This does not work by it self, but combined with auto-close-tag.activationOnLanguage it does the right thing.
Finally i ended with this solution:

{
    "auto-close-tag.activationOnLanguage": ["*" ],

    "files.associations": {
        "*.html": "stencil-html",
        "*.htm": "html",
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants