]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Ignore TypeScript language server custom notification
authorAndreas Louv <andreas@louv.dk>
Sun, 5 Mar 2023 22:06:09 +0000 (23:06 +0100)
committerAndreas Louv <andreas@louv.dk>
Sun, 5 Mar 2023 22:06:17 +0000 (23:06 +0100)
Ignore the "$/typescriptVersion" custom notification send by this
language server:

https://github.com/typescript-language-server/typescript-language-server

autoload/lsp/handlers.vim

index 9098975b2a40fb1117736bf122ed9b27db63b457..54869695cc0bf6ad4c865119e4939e369f8e4d6f 100644 (file)
@@ -89,7 +89,10 @@ export def ProcessNotif(lspserver: dict<any>, reply: dict<any>): void
       'telemetry/event': ProcessUnsupportedNotifOnce,
       # Java language server sends the 'language/status' notification which is
       # not in the LSP specification
-      'language/status': IgnoreNotif
+      'language/status': IgnoreNotif,
+      # Typescript language server sends the '$/typescriptVersion' notification
+      # which is not in the LSP specification
+      '$/typescriptVersion': IgnoreNotif
     }
 
   if lsp_notif_handlers->has_key(reply.method)