@@ -7,9 +7,10 @@ import { isCommit } from '../git/models/commit';
77import { deletedOrMissing } from '../git/models/constants' ;
88import { isShaLike , isUncommitted , shortenRevision } from '../git/models/reference' ;
99import { showGenericErrorMessage } from '../messages' ;
10- import { command , executeCoreCommand } from '../system/command' ;
10+ import { command } from '../system/command' ;
1111import { Logger } from '../system/logger' ;
1212import { basename } from '../system/path' ;
13+ import { openDiffEditor } from '../system/utils' ;
1314import { Command } from './base' ;
1415
1516export interface DiffWithCommandArgsRevision {
@@ -179,13 +180,12 @@ export class DiffWithCommand extends Command {
179180 args . showOptions . selection = new Range ( args . line , 0 , args . line , 0 ) ;
180181 }
181182
182- void ( await executeCoreCommand (
183- 'vscode.diff' ,
183+ await openDiffEditor (
184184 lhs ?? this . container . git . getRevisionUri ( deletedOrMissing , args . lhs . uri . fsPath , args . repoPath ) ,
185185 rhs ?? this . container . git . getRevisionUri ( deletedOrMissing , args . rhs . uri . fsPath , args . repoPath ) ,
186186 title ,
187187 args . showOptions ,
188- ) ) ;
188+ ) ;
189189 } catch ( ex ) {
190190 Logger . error ( ex , 'DiffWithCommand' , 'getVersionedFile' ) ;
191191 void showGenericErrorMessage ( 'Unable to open compare' ) ;
0 commit comments