File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,8 @@ export const baseRuntime = (connections: { reader: MessageReader; writer: Messag
269
269
} ,
270
270
onHover : handler => lspConnection . onHover ( handler ) ,
271
271
onSignatureHelp : handler => lspConnection . onSignatureHelp ( handler ) ,
272
+ onCodeAction : handler => lspConnection . onCodeAction ( handler ) ,
273
+ onCodeActionResolve : handler => lspConnection . onCodeActionResolve ( handler ) ,
272
274
extensions : {
273
275
onGetConfigurationFromServer : lspServer . setServerConfigurationHandler ,
274
276
onInlineCompletionWithReferences : handler =>
Original file line number Diff line number Diff line change @@ -410,6 +410,8 @@ export const standalone = (props: RuntimeProps) => {
410
410
} ,
411
411
onHover : handler => lspConnection . onHover ( handler ) ,
412
412
onSignatureHelp : handler => lspConnection . onSignatureHelp ( handler ) ,
413
+ onCodeAction : handler => lspConnection . onCodeAction ( handler ) ,
414
+ onCodeActionResolve : handler => lspConnection . onCodeActionResolve ( handler ) ,
413
415
extensions : {
414
416
onGetConfigurationFromServer : lspServer . setServerConfigurationHandler ,
415
417
onInlineCompletionWithReferences : handler =>
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ import {
48
48
ApplyWorkspaceEditParams ,
49
49
ApplyWorkspaceEditResult ,
50
50
DidSaveTextDocumentParams ,
51
+ CodeAction ,
52
+ CodeActionParams ,
51
53
DeleteFilesParams ,
52
54
CreateFilesParams ,
53
55
RenameFilesParams ,
@@ -135,6 +137,8 @@ export type Lsp = {
135
137
onExecuteCommand : ( handler : RequestHandler < ExecuteCommandParams , any | undefined | null , void > ) => void
136
138
onSemanticTokens : ( handler : RequestHandler < SemanticTokensParams , SemanticTokens | null , void > ) => void
137
139
onSignatureHelp : ( handler : RequestHandler < SignatureHelpParams , SignatureHelp | null | undefined , void > ) => void
140
+ onCodeAction : ( handler : RequestHandler < CodeActionParams , CodeAction [ ] | null | undefined , void > ) => void
141
+ onCodeActionResolve : ( handler : RequestHandler < CodeAction , CodeAction , void > ) => void
138
142
workspace : {
139
143
getConfiguration : ( section : string ) => Promise < any >
140
144
onDidChangeWorkspaceFolders : ( handler : NotificationHandler < DidChangeWorkspaceFoldersParams > ) => void
You can’t perform that action at this time.
0 commit comments