From f3116db3c57fc7bf066af48f82740d99a5ceb43f Mon Sep 17 00:00:00 2001 From: "shane.xb.qian" Date: Sun, 16 Apr 2023 16:03:00 +0800 Subject: [PATCH] none: safeguard the log level --- autoload/lsp/handlers.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0