Language-tools: Disabling html emmet

Created on 11 Dec 2020  路  7Comments  路  Source: sveltejs/language-tools

Is it possible to tell the lsp to not give html emmet suggestions? I already use a separate plugin for emmet and I would prefer to use that instead of lsp's one. Thanks in advance!

image

Fixed enhancement

All 7 comments

You can disable emmet suggestions in VS Code for everything (https://code.visualstudio.com/docs/editor/emmet#_disable-emmet-in-suggestions). Would that work for your case or would it also shut down the completions for your other plugin? (best restart VS Code after turning it off, just to be sure)

Oh, I don't use vscode. I was asking if it's possible to do it on LSP level because I ran the server using svelteserver --stdio
I wonder if there's any flag or configuration that can disable html emmet suggestions but keeping the other sugggestions.
If it's not possible then it's also fine, I'll just have to accept it.

Related #677

There's a new option now within the config, html.completions.emmet, which you can set to false. I'm not sure though how you would pass that to the language server in your case. The LSP has an initialization phase for that during which the config can be passed. This is where it's done in the VS Code extension.

ok nice, I know how to pass that option. Thanks for implementing this :]
I'll wait for the next release to try it out.

If you mean the language-server, then it's out already 馃槂

Awesome! It works. :laughing:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthewmueller picture matthewmueller  路  3Comments

opensas picture opensas  路  4Comments

PatrickG picture PatrickG  路  3Comments

baileyherbert picture baileyherbert  路  3Comments

maximedupre picture maximedupre  路  5Comments