Language intelligence inside HTML template strings with latest release? #8842
-
I read that the latest release has support for multiple LSPs per page so I was wondering if something like this is now possible: const html = html`
<h1>This has language intelligence</h1>
` Currently, the Typescript LSP is intelligent enough to highlight code in html (and css) template strings but you don’t get any language intelligence for HTML in them. Similarly, for HTML in Markdown, etc. Any thoughts on what, if anything, I can do to configure Helix to get this working? Also, is anyone else using Helix for web development? Is it worth maintaining a configuration for web development that does the common things out of the box? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
this is not possible. Running language servers on subranges of a document is not supported by the LSP standard. |
Beta Was this translation helpful? Give feedback.
-
Ah, well, all the more reason to stay with your inline diagnostics branch, then – thanks, Pascal ;) |
Beta Was this translation helpful? Give feedback.
this is not possible. Running language servers on subranges of a document is not supported by the LSP standard.