From: Yegappan Lakshmanan Date: Thu, 25 Feb 2021 04:43:54 +0000 (-0800) Subject: Ignore language/status notification X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cabefea2ca162a549d1a58d5e5e8c0a8989362b8;p=vim-lsp.git Ignore language/status notification --- diff --git a/autoload/handlers.vim b/autoload/handlers.vim index bf1711d..ae7fef0 100644 --- a/autoload/handlers.vim +++ b/autoload/handlers.vim @@ -1017,6 +1017,10 @@ def s:processUnsupportedNotif(lspserver: dict, reply: dict) ErrMsg('Error: Unsupported notification message received from the LSP server (' .. lspserver.path .. '), message = ' .. reply->string()) enddef +# ignore unsupported notification message +def s:ignoreNotif(lspserver: dict, reply: dict) +enddef + # process notification messages from the LSP server export def ProcessNotif(lspserver: dict, reply: dict): void var lsp_notif_handlers: dict = @@ -1025,7 +1029,10 @@ export def ProcessNotif(lspserver: dict, reply: dict): void 'window/logMessage': function('s:processLogMsgNotif'), 'textDocument/publishDiagnostics': function('s:processDiagNotif'), '$/progress': function('s:processUnsupportedNotif'), - 'telemetry/event': function('s:processUnsupportedNotif') + 'telemetry/event': function('s:processUnsupportedNotif'), + # Java language server sends the 'language/status' notification which is + # not in the LSP specification + 'language/status': function('s:ignoreNotif') } if lsp_notif_handlers->has_key(reply.method)