Lsp-mode: Option to suppress messages from lsp--info

Created on 6 Jul 2020  路  3Comments  路  Source: emacs-lsp/lsp-mode

This is more of an enhancement for Emacs lsp usability per se. We'd like to suppress the message sent by lsp--info, for example, in lsp-mode.el (around line 8187):

(lsp--info "Connected to %s." (apply 'concat (--map (format "[%s]" (lsp--workspace-print it)) lsp--buffer-workspaces)))))

The messages are displayed in emacs echo area and it shadows existing messages or prompts, for example, when we invoke lsp after opening files. Is it possible to configure lsp as "silent" mode and suppress messages coming from lsp--info or even lsp--warn?

Most helpful comment

We can and it is easy to do so. The concern is the granularity - because it might suppress useful messages as well. We may introduce "level". 0 means log everything, 10 log nothing.

All 3 comments

We can and it is easy to do so. The concern is the granularity - because it might suppress useful messages as well. We may introduce "level". 0 means log everything, 10 log nothing.

Thanks it would be great to have this feature!

I agree, too. Messages that are not shown with lsp--info could still be part of lsp-log ...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bradprob picture bradprob  路  5Comments

axelson picture axelson  路  4Comments

xendk picture xendk  路  3Comments

sid-kap picture sid-kap  路  5Comments

glepnir picture glepnir  路  4Comments