]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Ignore the $/progress notification message from some language servers
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 4 Mar 2023 15:56:34 +0000 (07:56 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 4 Mar 2023 15:56:34 +0000 (07:56 -0800)
autoload/lsp/handlers.vim

index 6adc59cfcebc6d2acdc871be95c0dc0f0d29bab2..9098975b2a40fb1117736bf122ed9b27db63b457 100644 (file)
@@ -73,7 +73,7 @@ def ProcessUnsupportedNotifOnce(lspserver: dict<any>, reply: dict<any>)
   endif
 enddef
 
-# ignore unsupported notification message
+# silently ignore an unsupported notification message
 def IgnoreNotif(lspserver: dict<any>, reply: dict<any>)
 enddef
 
@@ -84,7 +84,7 @@ export def ProcessNotif(lspserver: dict<any>, reply: dict<any>): void
       'window/showMessage': ProcessShowMsgNotif,
       'window/logMessage': ProcessLogMsgNotif,
       'textDocument/publishDiagnostics': ProcessDiagNotif,
-      '$/progress': ProcessUnsupportedNotif,
+      '$/progress': IgnoreNotif,
       '$/logTrace': ProcessLogTraceNotif,
       'telemetry/event': ProcessUnsupportedNotifOnce,
       # Java language server sends the 'language/status' notification which is