From: shane.xb.qian Date: Sun, 16 Apr 2023 08:03:00 +0000 (+0800) Subject: none: safeguard the log level X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f3116db3c57fc7bf066af48f82740d99a5ceb43f;p=vim-lsp.git none: safeguard the log level --- diff --git a/autoload/lsp/handlers.vim b/autoload/lsp/handlers.vim index 0a9fab6..79fc9f5 100644 --- a/autoload/lsp/handlers.vim +++ b/autoload/lsp/handlers.vim @@ -34,7 +34,7 @@ enddef # Notification: window/showMessage # Param: ShowMessageParams def ProcessShowMsgNotif(lspserver: dict, reply: dict) - if reply.params.type == 4 + if reply.params.type >= 4 # ignore log messages from the LSP server (too chatty) # TODO: Add a configuration to control the message level that will be # displayed. Also store these messages and provide a command to display