]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Ignore unsupported notification messages from ccls language server
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 5 Feb 2024 16:23:39 +0000 (08:23 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 5 Feb 2024 16:23:39 +0000 (08:23 -0800)
autoload/lsp/handlers.vim

index 2058c7752cdedddf72bcda6ff840dba540439ccb..ca5741c9df13851e05db9b3de7132b957238a39c 100644 (file)
@@ -94,7 +94,8 @@ export def ProcessNotif(lspserver: dict<any>, reply: dict<any>): void
       'telemetry/event': ProcessUnsupportedNotifOnce,
     }
 
-  # Explicitly ignored notification messages
+  # Explicitly ignored notification messages (many of them are specific to a
+  # particular language server)
   var lsp_ignored_notif_handlers: list<string> =
     [
       '$/progress',
@@ -119,7 +120,10 @@ export def ProcessNotif(lspserver: dict<any>, reply: dict<any>): void
       'pyright/endProgress',
       'eslint/status',
       'taplo/didChangeSchemaAssociation',
-      'sqlLanguageServer.finishSetup'
+      'sqlLanguageServer.finishSetup',
+      # ccls language server notifications
+      '$ccls/publishSkippedRanges',
+      '$ccls/publishSemanticHighlight',
     ]
 
   if lsp_notif_handlers->has_key(reply.method)