vscode-elixir-ls icon indicating copy to clipboard operation
vscode-elixir-ls copied to clipboard

Feature: Good support for eex/leex files

Open axelson opened this issue 5 years ago • 3 comments

If VSCode had direct support for universally embedding languages that would be ideal, but it's currently on the backlog:

  • https://github.com/microsoft/vscode/issues/1751
  • This comment on the above issue has an example of embedding that is possible today

You can embed syntax highlighting, this might be the lowest hanging fruit: https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#embedded-languages

You can also embed support for another language server: https://code.visualstudio.com/api/language-extensions/embedded-languages

If you use tailwind css, this extension has support for eex (and leex?) files, and might be a good source of inspiration: https://github.com/bradlc/vscode-tailwindcss

axelson avatar Jun 01 '20 17:06 axelson

Semi-related issue: https://github.com/elixir-lsp/vscode-elixir-ls/issues/21

axelson avatar Jun 01 '20 17:06 axelson

Thanks for the reply. I was not aware that universal embedding wasn't supported, and judging by the age of that issue it's definitely not a priority. I'll have to spend some time reading in detail to see if there is a reasonable solution in the near term.

bdtomlin avatar Jan 22 '21 21:01 bdtomlin

https://github.com/microsoft/vscode/issues/1751 was closed last month

NatoBoram avatar Oct 26 '21 20:10 NatoBoram

Closing this as it's too broad to be actionable. If anyone has a specific ideas on what needs improvement then please open a separate issue. Basic elixir features like completions, hover, definition work fine. Variables defined in template does not (I opened https://github.com/elixir-lsp/vscode-elixir-ls/issues/279). HTML/CSS/JS completions does not (I opened https://github.com/elixir-lsp/vscode-elixir-ls/issues/278 to track that).

lukaszsamson avatar Nov 06 '22 23:11 lukaszsamson