'window/workDoneProgress/create': ProcessWorkDoneProgressCreate,
'client/registerCapability': ProcessClientRegisterCap,
'client/unregisterCapability': ProcessClientUnregisterCap,
- 'workspace/configuration': ProcessWorkspaceConfiguration,
- 'workspace/codeLens/refresh': ProcessUnsupportedReq,
- 'workspace/semanticTokens/refresh': ProcessUnsupportedReq
+ 'workspace/configuration': ProcessWorkspaceConfiguration
}
+ # Explicitly ignored requests
+ var lspIgnoredRequestHandlers: list<string> =
+ [
+ # Eclipse java language server sends the 'workspace/executeClientCommand'
+ # request (to reload bundles) which is not in the LSP specification.
+ 'workspace/executeClientCommand',
+ ]
+
if lspRequestHandlers->has_key(request.method)
lspRequestHandlers[request.method](lspserver, request)
- else
+ elseif lspserver.customRequestHandlers->has_key(request.method)
+ lspserver.customRequestHandlers[request.method](lspserver, request)
+ elseif lspIgnoredRequestHandlers->index(request.method) == -1
util.ErrMsg($'Unsupported request message received from the LSP server ({lspserver.path}), message = {request->string()}')
endif
enddef