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?
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 ...
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.