Skip to content

Commit

Permalink
Merge pull request #498 from Shane-XB-Qian/feat_showMsgReq
Browse files Browse the repository at this point in the history
feat: tmp impl 'showMessageRequest'
  • Loading branch information
yegappan authored May 8, 2024
2 parents 07a536f + 553fffd commit dfc001a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autoload/lsp/handlers.vim
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,16 @@ def ProcessWorkDoneProgressCreate(lspserver: dict<any>, request: dict<any>)
lspserver.sendResponse(request, null, {})
enddef

# process the window/showMessageRequest LSP server request
# Request: "window/showMessageRequest"
# Param: ShowMessageRequestParams
def ProcessShowMessageRequest(lspserver: dict<any>, request: dict<any>)
# 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
Expand All @@ -223,6 +233,7 @@ export def ProcessRequest(lspserver: dict<any>, request: dict<any>)
'client/registerCapability': ProcessClientRegisterCap,
'client/unregisterCapability': ProcessClientUnregisterCap,
'window/workDoneProgress/create': ProcessWorkDoneProgressCreate,
'window/showMessageRequest': ProcessShowMessageRequest,
'workspace/applyEdit': ProcessApplyEditReq,
'workspace/configuration': ProcessWorkspaceConfiguration,
'workspace/workspaceFolders': ProcessWorkspaceFoldersReq
Expand Down

0 comments on commit dfc001a

Please sign in to comment.