autoload/handlers.vim | 9 ++++++++- diff --git a/autoload/handlers.vim b/autoload/handlers.vim index bf1711dfd948ff3abf8d8cf6e88806fbee2f8cbc..ae7fef08d49221e1424f564131c14288b0d7759d 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 @@ 'window/showMessage': function('s:processShowMsgNotif'), '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)