From e5980dae752067a62fc4918801a00481134a46b0 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Fri, 7 Apr 2023 11:55:49 -0700 Subject: [PATCH] Ignore indexingStarted and indexingEnded notification messages --- autoload/lsp/handlers.vim | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/autoload/lsp/handlers.vim b/autoload/lsp/handlers.vim index a62fbfb..93c4312 100644 --- a/autoload/lsp/handlers.vim +++ b/autoload/lsp/handlers.vim @@ -44,8 +44,8 @@ enddef # Notification: window/logMessage # Param: LogMessageParams def ProcessLogMsgNotif(lspserver: dict, reply: dict) - var msgType: list = ['', 'Error: ', 'Warning: ', 'Info: ', 'Log: '] - var mtype: string = 'Log: ' + var msgType: list = ['', 'Error', 'Warning', 'Info', 'Log'] + var mtype: string = 'Log' if reply.params.type > 0 && reply.params.type < 5 mtype = msgType[reply.params.type] endif @@ -84,16 +84,21 @@ export def ProcessNotif(lspserver: dict, reply: dict): void 'telemetry/event': ProcessUnsupportedNotifOnce, } + # Explicitly ignored notification messages var lsp_ignored_notif_handlers: list = [ '$/progress', '$/status/report', '$/status/show', + # PHP intelephense server sends the 'indexingStarted' and + # 'indexingEnded' notifications which is not in the LSP specification. + 'indexingStarted', + 'indexingEnded', # Java language server sends the 'language/status' notification which is - # not in the LSP specification + # not in the LSP specification. 'language/status', - # Typescript language server sends the '$/typescriptVersion' notification - # which is not in the LSP specification + # Typescript language server sends the '$/typescriptVersion' + # notification which is not in the LSP specification. '$/typescriptVersion' ] -- 2.48.1