@@ -59,6 +59,7 @@ export function registerInlineChatCommands(accessor: ServicesAccessor): IDisposa
59
59
const extensionContext = accessor . get ( IVSCodeExtensionContext ) ;
60
60
const configurationService = accessor . get ( IConfigurationService ) ;
61
61
const parserService = accessor . get ( IParserService ) ;
62
+ const commandExecutionService = accessor . get ( IRunCommandExecutionService ) ;
62
63
63
64
const disposables = new DisposableStore ( ) ;
64
65
const doExplain = async ( arg0 : any , fromPalette ?: true ) => {
@@ -314,7 +315,7 @@ ${message}`,
314
315
disposables . add ( vscode . commands . registerCommand ( 'github.copilot.chat.review.stagedChanges' , ( ) => doReview ( ...instaService . invokeFunction ( getServicesForReview ) , 'index' , vscode . ProgressLocation . SourceControl ) ) ) ;
315
316
disposables . add ( vscode . commands . registerCommand ( 'github.copilot.chat.review.unstagedChanges' , ( ) => doReview ( ...instaService . invokeFunction ( getServicesForReview ) , 'workingTree' , vscode . ProgressLocation . SourceControl ) ) ) ;
316
317
disposables . add ( vscode . commands . registerCommand ( 'github.copilot.chat.review.changes' , ( ) => doReview ( ...instaService . invokeFunction ( getServicesForReview ) , 'all' , vscode . ProgressLocation . SourceControl ) ) ) ;
317
- disposables . add ( vscode . commands . registerCommand ( 'github.copilot.chat.review.changes.cancel' , ( ) => cancelReview ( vscode . ProgressLocation . SourceControl , accessor . get ( IRunCommandExecutionService ) ) ) ) ;
318
+ disposables . add ( vscode . commands . registerCommand ( 'github.copilot.chat.review.changes.cancel' , ( ) => cancelReview ( vscode . ProgressLocation . SourceControl , commandExecutionService ) ) ) ;
318
319
disposables . add ( vscode . commands . registerCommand ( 'github.copilot.chat.review.apply' , doApplyReview ) ) ;
319
320
disposables . add ( vscode . commands . registerCommand ( 'github.copilot.chat.review.applyAndNext' , ( commentThread : vscode . CommentThread ) => doApplyReview ( commentThread , true ) ) ) ;
320
321
disposables . add ( vscode . commands . registerCommand ( 'github.copilot.chat.review.applyShort' , ( commentThread : vscode . CommentThread ) => doApplyReview ( commentThread , true ) ) ) ;
0 commit comments