]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
none: safeguard the log level
authorshane.xb.qian <shane.qian@foxmail.com>
Sun, 16 Apr 2023 08:03:00 +0000 (16:03 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Sun, 16 Apr 2023 19:21:37 +0000 (03:21 +0800)
autoload/lsp/handlers.vim

index 0a9fab686cdc4364ceac1d79f3ae971e6c2acc0b..79fc9f5562526b70f02b9a1922111e23de204b0e 100644 (file)
@@ -34,7 +34,7 @@ enddef
 # Notification: window/showMessage
 # Param: ShowMessageParams
 def ProcessShowMsgNotif(lspserver: dict<any>, reply: dict<any>)
-  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