-
Notifications
You must be signed in to change notification settings - Fork 8
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
auto closing of tags appears to not work on gjs/gts files #44
Comments
When I did my deep dive into this to support gts/gjs I was not able to figure this part out. My assumption was injecting the html/handlebars context in a template tag should enable auto closing tags but that doesn't work. I'll have another look some point next week to. |
It may be a case where such cases handled by https://github.com/lifeart/typescript-hbs-plugin |
These docs should be helpful when I get time to look at this @lifeart I'm assuming we could pull the completion you highlighted in typescript-hbs-plugin to your ember-language-server so this works for everyone? |
@evoactivity yep, right |
Not sure where exactly this should be configured in this extension. Made a PR to To get it working already today, you could install the extension and add this config: {
// other settings ...
"auto-close-tag.activationOnLanguage": [
"*",
"glimmer-js",
"glimmer-ts",
],
} |
Interesting approach, will be a lot simplar than adding this to the language server. It might be worth adding that addon to the extension pack rather than here though, especially since your PR was accepted installing it should just work. |
That seems reasonable to me, I can look to PR it. We'll need some info in the README though as to why it's needed, as VS Code ships this natively since https://code.visualstudio.com/updates/v1_16#_html-close-tags. Seems like a good quick blog post to make as well, if I can find some time 👀 |
Good catch, apparently it's a known issue reported 8 years ago 🙃 (formulahendry/vscode-auto-close-tag#17) I can take a look to fix it in the extension, but at that point it might be worth rather to take over the extension's functionality in this one? |
@IgnaceMaes we could do it in our |
Using It'd be good to get the full html intellisense working, not just auto closing tags too. I plan on watching this at some point https://www.youtube.com/watch?v=Xo5VXTRoL6Q so hopefully I'll have a better understanding LSP's and can help contribute more. |
@evoactivity start with tests and original repo (https://github.com/microsoft/typescript-lit-html-plugin) |
Screencast.from.2023-10-15.09-11-24.webm
The text was updated successfully, but these errors were encountered: