From cabefea2ca162a549d1a58d5e5e8c0a8989362b8 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Wed, 24 Feb 2021 20:43:54 -0800 Subject: [PATCH] Ignore language/status notification --- autoload/handlers.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) -- 2.48.1