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
269269 } ,
270270 onHover : handler => lspConnection . onHover ( handler ) ,
271271 onSignatureHelp : handler => lspConnection . onSignatureHelp ( handler ) ,
272+ onCodeAction : handler => lspConnection . onCodeAction ( handler ) ,
273+ onCodeActionResolve : handler => lspConnection . onCodeActionResolve ( handler ) ,
272274 extensions : {
273275 onGetConfigurationFromServer : lspServer . setServerConfigurationHandler ,
274276 onInlineCompletionWithReferences : handler =>
Original file line number Diff line number Diff line change @@ -410,6 +410,8 @@ export const standalone = (props: RuntimeProps) => {
410410 } ,
411411 onHover : handler => lspConnection . onHover ( handler ) ,
412412 onSignatureHelp : handler => lspConnection . onSignatureHelp ( handler ) ,
413+ onCodeAction : handler => lspConnection . onCodeAction ( handler ) ,
414+ onCodeActionResolve : handler => lspConnection . onCodeActionResolve ( handler ) ,
413415 extensions : {
414416 onGetConfigurationFromServer : lspServer . setServerConfigurationHandler ,
415417 onInlineCompletionWithReferences : handler =>
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ import {
4848 ApplyWorkspaceEditParams ,
4949 ApplyWorkspaceEditResult ,
5050 DidSaveTextDocumentParams ,
51+ CodeAction ,
52+ CodeActionParams ,
5153 DeleteFilesParams ,
5254 CreateFilesParams ,
5355 RenameFilesParams ,
@@ -135,6 +137,8 @@ export type Lsp = {
135137 onExecuteCommand : ( handler : RequestHandler < ExecuteCommandParams , any | undefined | null , void > ) => void
136138 onSemanticTokens : ( handler : RequestHandler < SemanticTokensParams , SemanticTokens | null , void > ) => void
137139 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
138142 workspace : {
139143 getConfiguration : ( section : string ) => Promise < any >
140144 onDidChangeWorkspaceFolders : ( handler : NotificationHandler < DidChangeWorkspaceFoldersParams > ) => void
You can’t perform that action at this time.
0 commit comments