in runtimes/runtimes/standalone.ts [311:334]
getClientInitializeParams: getClientInitializeParamsHandlerFactory(lspRouter),
onCompletion: handler => lspConnection.onCompletion(handler),
onInlineCompletion: handler => lspConnection.onRequest(inlineCompletionRequestType, handler),
didChangeConfiguration: lspServer.setDidChangeConfigurationHandler,
onDidFormatDocument: handler => lspConnection.onDocumentFormatting(handler),
onDidOpenTextDocument: handler => documentsObserver.callbacks.onDidOpenTextDocument(handler),
onDidChangeTextDocument: handler => documentsObserver.callbacks.onDidChangeTextDocument(handler),
onDidCloseTextDocument: handler => documentsObserver.callbacks.onDidCloseTextDocument(handler),
onDidSaveTextDocument: handler => documentsObserver.callbacks.onDidSaveTextDocument(handler),
onExecuteCommand: lspServer.setExecuteCommandHandler,
onSemanticTokens: handler => lspConnection.onRequest(SemanticTokensRequest.type, handler),
workspace: {
applyWorkspaceEdit: params => lspConnection.workspace.applyEdit(params),
getConfiguration: section => lspConnection.workspace.getConfiguration(section),
onDidChangeWorkspaceFolders: handler =>
lspConnection.onNotification(DidChangeWorkspaceFoldersNotification.method, handler),
onDidCreateFiles: params => lspConnection.workspace.onDidCreateFiles(params),
onDidDeleteFiles: params => lspConnection.workspace.onDidDeleteFiles(params),
onDidRenameFiles: params => lspConnection.workspace.onDidRenameFiles(params),
onUpdateConfiguration: lspServer.setUpdateConfigurationHandler,
selectWorkspaceItem: params =>
lspConnection.sendRequest(selectWorkspaceItemRequestType.method, params),
openFileDiff: params => lspConnection.sendNotification(openFileDiffNotificationType.method, params),
},