mattn / efm-langserver

General purpose Language Server
MIT License
1.32k stars 59 forks source link

Remove verbose logging #267

Closed jspricke closed 8 months ago

jspricke commented 8 months ago

This reduces the noise in log files.

mattn commented 8 months ago

What is your motivation? If it is related on neovim behaviors, you should file issue for neovim.

jspricke commented 8 months ago

There is no issue, just that I think the extra output is not needed and would be nice to reduce the verbosity.

mattn commented 8 months ago

Why verbosity? If you are using this in the IDE or text editor, it should not be appeared. What IDE or text editor do you use?

jspricke commented 8 months ago

I use neovim and it shows up in the log

mattn commented 8 months ago

That is neovim' issue. This is important logging to debug efm-langserver for me.

mattn commented 8 months ago

If you want to reduce it, please add new flag -disable-logs or something.

jspricke commented 8 months ago

Would you be ok with moving it to a higher loglevel, say 2?

mattn commented 8 months ago

Did you try -q flag?

jspricke commented 8 months ago

Yes, but I can't set that via LSP.

mattn commented 8 months ago

Really? The general lsp plugin should allow you to change the arguments. ex: deno lsp is passing argument the lsp.

jspricke commented 8 months ago

Indeed adding lspconfig.efm.setup.cmd = {"efm-langserver", "-q"} works. thx!