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

~H sigil support

Open exit9 opened this issue 4 years ago • 2 comments

Environment: Elixir 1.12 & Erlang 24, Linux, VSCode, elixir-ls-vscode

Hello. There's new ~H sigil in Phoenix 1.6 acts like shorthand to html.leex. Is any plans for support it? I think it would be the same as ~L sigil. And I unfortunately can't find ~L support in repo and history to make pull request myself. https://github.com/phoenixframework/phoenix_live_view/blob/45d871f5d633c61b9304f005b9d7d86df9c252a3/lib/phoenix_live_view/helpers.ex#L703

exit9 avatar Jul 28 '21 06:07 exit9

There's relevant discussion in https://github.com/elixir-lsp/vscode-elixir-ls/pull/193 the current plan is to add support for ~H in a separate extension which can be maintained upstream. I'll leave this open until that is resolved.

axelson avatar Aug 09 '21 23:08 axelson

@exit9 You can find ~L support here https://github.com/elixir-lsp/vscode-elixir-ls/blob/16f3a856af893b6fa1dae8687b50f379e3f1b16f/syntaxes/elixir.json#L1566 (and 3 other places, just search the file for '~L') As for templates, see https://github.com/elixir-lsp/vscode-elixir-ls/blob/master/syntaxes/html-eex.json and https://github.com/elixir-lsp/vscode-elixir-ls/blob/master/syntaxes/eex.json

lukaszsamson avatar Jan 23 '22 10:01 lukaszsamson

Addressed in https://github.com/elixir-lsp/vscode-elixir-ls/pull/277

lukaszsamson avatar Nov 06 '22 23:11 lukaszsamson