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