File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export default class CodeActionProvider extends AbstractProvider implements vsco
9090 return {
9191 title : codeAction . Name ,
9292 command : this . _commandId ,
93- arguments : [ runRequest ]
93+ arguments : [ runRequest , token ]
9494 } ;
9595 } ) ;
9696 }
@@ -99,7 +99,7 @@ export default class CodeActionProvider extends AbstractProvider implements vsco
9999 }
100100 }
101101
102- private async _runCodeAction ( req : protocol . V2 . RunCodeActionRequest ) : Promise < boolean | string | { } > {
102+ private async _runCodeAction ( req : protocol . V2 . RunCodeActionRequest , token : vscode . CancellationToken ) : Promise < boolean | string | { } > {
103103
104104 return serverUtils . runCodeAction ( this . _server , req ) . then ( async response => {
105105 if ( response && Array . isArray ( response . Changes ) ) {
@@ -149,7 +149,7 @@ export default class CodeActionProvider extends AbstractProvider implements vsco
149149 }
150150
151151 // Allow language middlewares to re-map its edits if necessary.
152- edit = await this . _languageMiddlewareFeature . remap ( "remapWorkspaceEdit" , edit , /* token*/ null ) ;
152+ edit = await this . _languageMiddlewareFeature . remap ( "remapWorkspaceEdit" , edit , token ) ;
153153
154154 let applyEditPromise = vscode . workspace . applyEdit ( edit ) ;
155155
You can’t perform that action at this time.
0 commit comments