From 1bac42a2f3ee01f8a9fa3d41dcdce3f3fb046169 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Sat, 4 Mar 2023 07:56:34 -0800 Subject: [PATCH] Ignore the $/progress notification message from some language servers --- autoload/lsp/handlers.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/lsp/handlers.vim b/autoload/lsp/handlers.vim index 6adc59c..9098975 100644 --- a/autoload/lsp/handlers.vim +++ b/autoload/lsp/handlers.vim @@ -73,7 +73,7 @@ def ProcessUnsupportedNotifOnce(lspserver: dict, reply: dict) endif enddef -# ignore unsupported notification message +# silently ignore an unsupported notification message def IgnoreNotif(lspserver: dict, reply: dict) enddef @@ -84,7 +84,7 @@ export def ProcessNotif(lspserver: dict, reply: dict): void 'window/showMessage': ProcessShowMsgNotif, 'window/logMessage': ProcessLogMsgNotif, 'textDocument/publishDiagnostics': ProcessDiagNotif, - '$/progress': ProcessUnsupportedNotif, + '$/progress': IgnoreNotif, '$/logTrace': ProcessLogTraceNotif, 'telemetry/event': ProcessUnsupportedNotifOnce, # Java language server sends the 'language/status' notification which is -- 2.48.1