-
Notifications
You must be signed in to change notification settings - Fork 53
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
Extension is auto-closing generic type parameters in TypeScript #24
Comments
Hi @ChuckkNorris , you could set the languages that the auto-close-tag will be activated, {
"auto-close-tag.activationOnLanguage": [
"javascript",
"javascriptreact",
"html",
"xml",
"php"
]
} Refer to this for the full list of Language Identifiers. |
Exactly what I was looking for - thanks for the help. |
So if I want auto-close-tag on jsx DOM tags but at the same time, deactivate it when closing generic typescript types. simply can't I? @formulahendry thanks in advance. |
what @lucascyrne brings up is exactly how I landed here from google. |
All I want for Christmas is a setting to enable this for |
The issue is not closed. When writing angular code I want to get auto close in templates, but not in the typescript block of the same file. |
when file type is "typescriptreact" the extension could only activate autoclosing if inside a of course it's not a perfect fix, since JSX may be in a variable or non- ... but it would be good enough ! |
Should be reopened so that users understand that is not solved without reading the whole thread. Thank you! |
When using type parameters or generics, this extension will add another closing "tag" even though it's not HTML at all.
e.g.
Now I could add every single type/class name to the
"auto-close-tag.excludedTags"
list, but that would be quite cumbersome.Ideally, there would be a way to disable this extension for all
*.ts
file types. Is there a better way to prevent auto-close in my TypeScript code?The text was updated successfully, but these errors were encountered: