Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions runtimes/runtimes/base-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,11 @@ export const baseRuntime = (connections: { reader: MessageReader; writer: Messag
sendProgress: <P>(type: ProgressType<P>, token: ProgressToken, value: P) => {
return lspConnection.sendProgress(type, token, value)
},
onDefinition: handler => lspConnection.onDefinition(handler),
onHover: handler => lspConnection.onHover(handler),
onSignatureHelp: handler => lspConnection.onSignatureHelp(handler),
onCodeAction: handler => lspConnection.onCodeAction(handler),
onCodeActionResolve: handler => lspConnection.onCodeActionResolve(handler),
extensions: {
onGetConfigurationFromServer: lspServer.setServerConfigurationHandler,
onInlineCompletionWithReferences: handler =>
Expand Down
3 changes: 3 additions & 0 deletions runtimes/runtimes/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,11 @@ export const standalone = (props: RuntimeProps) => {

return lspConnection.sendProgress(type, token, value)
},
onDefinition: handler => lspConnection.onDefinition(handler),
onHover: handler => lspConnection.onHover(handler),
onSignatureHelp: handler => lspConnection.onSignatureHelp(handler),
onCodeAction: handler => lspConnection.onCodeAction(handler),
onCodeActionResolve: handler => lspConnection.onCodeActionResolve(handler),
extensions: {
onGetConfigurationFromServer: lspServer.setServerConfigurationHandler,
onInlineCompletionWithReferences: handler =>
Expand Down
10 changes: 10 additions & 0 deletions runtimes/server-interface/lsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
CompletionList,
CompletionParams,
ConfigurationOptions,
DefinitionParams,
DidChangeConfigurationParams,
DidChangeTextDocumentParams,
DidChangeWorkspaceFoldersParams,
Expand All @@ -26,6 +27,8 @@ import {
InlineCompletionList,
InlineCompletionListWithReferences,
InlineCompletionParams,
Location,
LocationLink,
LogInlineCompletionSessionResultsParams,
NotificationHandler,
ProgressToken,
Expand All @@ -48,6 +51,8 @@ import {
ApplyWorkspaceEditParams,
ApplyWorkspaceEditResult,
DidSaveTextDocumentParams,
CodeAction,
CodeActionParams,
DeleteFilesParams,
CreateFilesParams,
RenameFilesParams,
Expand Down Expand Up @@ -131,10 +136,15 @@ export type Lsp = {
onDidSaveTextDocument: (handler: NotificationHandler<DidSaveTextDocumentParams>) => void
publishDiagnostics: (params: PublishDiagnosticsParams) => Promise<void>
sendProgress: <P>(type: ProgressType<P>, token: ProgressToken, value: P) => Promise<void>
onDefinition: (
handler: RequestHandler<DefinitionParams, Location | Location[] | LocationLink[] | null | undefined, void>
) => void
onHover: (handler: RequestHandler<HoverParams, Hover | null | undefined, void>) => void
onExecuteCommand: (handler: RequestHandler<ExecuteCommandParams, any | undefined | null, void>) => void
onSemanticTokens: (handler: RequestHandler<SemanticTokensParams, SemanticTokens | null, void>) => void
onSignatureHelp: (handler: RequestHandler<SignatureHelpParams, SignatureHelp | null | undefined, void>) => void
onCodeAction: (handler: RequestHandler<CodeActionParams, CodeAction[] | null | undefined, void>) => void
onCodeActionResolve: (handler: RequestHandler<CodeAction, CodeAction, void>) => void
workspace: {
getConfiguration: (section: string) => Promise<any>
onDidChangeWorkspaceFolders: (handler: NotificationHandler<DidChangeWorkspaceFoldersParams>) => void
Expand Down