From 553fffdf124bcac64d83d38372ad855e07a21134 Mon Sep 17 00:00:00 2001 From: "shane.xb.qian" Date: Sun, 7 Apr 2024 21:31:57 +0800 Subject: [PATCH] feat: tmp impl 'showMessageRequest' --- autoload/lsp/handlers.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/autoload/lsp/handlers.vim b/autoload/lsp/handlers.vim index e0eee13b..dd597ed5 100644 --- a/autoload/lsp/handlers.vim +++ b/autoload/lsp/handlers.vim @@ -202,6 +202,16 @@ def ProcessWorkDoneProgressCreate(lspserver: dict, request: dict) lspserver.sendResponse(request, null, {}) enddef +# process the window/showMessageRequest LSP server request +# Request: "window/showMessageRequest" +# Param: ShowMessageRequestParams +def ProcessShowMessageRequest(lspserver: dict, request: dict) + # TODO: for now 'showMessageRequest' handled same like 'showMessage' + # regardless 'actions' + ProcessShowMsgNotif(lspserver, request) + lspserver.sendResponse(request, null, {}) +enddef + # process the client/registerCapability LSP server request # Request: "client/registerCapability" # Param: RegistrationParams @@ -223,6 +233,7 @@ export def ProcessRequest(lspserver: dict, request: dict) 'client/registerCapability': ProcessClientRegisterCap, 'client/unregisterCapability': ProcessClientUnregisterCap, 'window/workDoneProgress/create': ProcessWorkDoneProgressCreate, + 'window/showMessageRequest': ProcessShowMessageRequest, 'workspace/applyEdit': ProcessApplyEditReq, 'workspace/configuration': ProcessWorkspaceConfiguration, 'workspace/workspaceFolders': ProcessWorkspaceFoldersReq