-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Provide a way for a different language to receive html language features #88377
Comments
(Experimental duplicate detection) |
#55088 seems like a solution. Please feel free to close this issue |
Hi @aeschli, it looks like your comment in #55088 (comment) suggests forwarding requests by executing VS Code commands like But what about html features like auto close tags and auto rename tags? The HTML LS accepts Would the solution here be to create our own LS that accepts Another solution would just be to add our language in this array:
but because the Qute language is new, I understand if that's not favorable in general, to have random languages in the VS Code source code. |
Yes, we want to make the full-html language (html + css + javascript) server more reusable autoClosingTags and mirrorCursorOnMatchingTag would be made available in both approaches. It is also planed to make autoClosingTags and mirrorCursorOnMatchingTag language features for all (using regular provider). So they would be reusable like code completions. If you have your own language server, I'd recommend for adding html as a service (a.) so you are self contained, avoid versioning issues and are able to give context to the HTML language service (e.g.) globals) gets as well as have more control over the user experience. Approach (b) to enable a fast adoption of a template language where there is no language server. The capabilities added will be limited to inheriting HTML support. |
Hi, it would be great if there was a way for different HTML-like languages to receive HTML language features. Templating language extensions in the VS Code Marketplace could benefit from this.
Our use case:
We are working with a new HTML templating language with its own language config and TextMate grammar and would like to have the built-in HTML language features for the language. Features like auto indent, auto close tags, auto rename tags.
In our package.json we've created a new language called "Qute", for the Qute Templating Engine, with its own language config and grammar.
I don't think doing
"files.associations": {"*.(our-extension)": "html"}
in settings.json would help here because changing the file association would override the Qute grammar and language config.Maybe there could be a way to register new HTML-like languages to the HTML language server?
Or is there a better way to handle this?
Thanks!
The text was updated successfully, but these errors were encountered: