diff --git a/runtimes/runtimes/base-runtime.ts b/runtimes/runtimes/base-runtime.ts index 6fa3baf3..66374947 100644 --- a/runtimes/runtimes/base-runtime.ts +++ b/runtimes/runtimes/base-runtime.ts @@ -267,8 +267,11 @@ export const baseRuntime = (connections: { reader: MessageReader; writer: Messag sendProgress:
(type: ProgressType
, 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 =>
diff --git a/runtimes/runtimes/standalone.ts b/runtimes/runtimes/standalone.ts
index 53a10921..d199bd79 100644
--- a/runtimes/runtimes/standalone.ts
+++ b/runtimes/runtimes/standalone.ts
@@ -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 =>
diff --git a/runtimes/server-interface/lsp.ts b/runtimes/server-interface/lsp.ts
index ec4ffdcf..7dc86ed0 100644
--- a/runtimes/server-interface/lsp.ts
+++ b/runtimes/server-interface/lsp.ts
@@ -8,6 +8,7 @@ import {
CompletionList,
CompletionParams,
ConfigurationOptions,
+ DefinitionParams,
DidChangeConfigurationParams,
DidChangeTextDocumentParams,
DidChangeWorkspaceFoldersParams,
@@ -26,6 +27,8 @@ import {
InlineCompletionList,
InlineCompletionListWithReferences,
InlineCompletionParams,
+ Location,
+ LocationLink,
LogInlineCompletionSessionResultsParams,
NotificationHandler,
ProgressToken,
@@ -48,6 +51,8 @@ import {
ApplyWorkspaceEditParams,
ApplyWorkspaceEditResult,
DidSaveTextDocumentParams,
+ CodeAction,
+ CodeActionParams,
DeleteFilesParams,
CreateFilesParams,
RenameFilesParams,
@@ -131,10 +136,15 @@ export type Lsp = {
onDidSaveTextDocument: (handler: NotificationHandler (type: ProgressType , token: ProgressToken, value: P) => Promise