@@ -100,7 +100,12 @@ export default class CommandHandler implements vscode.Disposable {
100100 const rightUri = leftUri . with ( { query : JSON . stringify ( { scheme, range, fullRange : conflict . range } ) } ) ;
101101
102102 const title = localize ( 'compareChangesTitle' , '{0}: Current Changes ⟷ Incoming Changes' , fileName ) ;
103- vscode . commands . executeCommand ( 'vscode.diff' , leftUri , rightUri , title ) ;
103+ const mergeConflictConfig = vscode . workspace . getConfiguration ( 'merge-conflict' ) ;
104+ const openToTheside = mergeConflictConfig . get < boolean > ( 'openDiffInNewEditor' ) ;
105+ const opts : vscode . TextDocumentShowOptions = {
106+ viewColumn : openToTheside ? vscode . ViewColumn . Beside : vscode . ViewColumn . Active
107+ } ;
108+ vscode . commands . executeCommand ( 'vscode.diff' , leftUri , rightUri , title , opts ) ;
104109 }
105110
106111 async compareAll ( editor : vscode . TextEditor ) {
@@ -125,7 +130,13 @@ export default class CommandHandler implements vscode.Disposable {
125130 const rightUri = leftUri . with ( { query : JSON . stringify ( { type : 'full' , scheme, ranges : rightRanges } ) } ) ;
126131
127132 const title = localize ( 'compareChangesTitle' , '{0}: Current Changes ⟷ Incoming Changes' , fileName ) ;
128- vscode . commands . executeCommand ( 'vscode.diff' , leftUri , rightUri , title ) ;
133+ const mergeConflictConfig = vscode . workspace . getConfiguration ( 'merge-conflict' ) ;
134+ const openToTheside = mergeConflictConfig . get < boolean > ( 'openDiffInNewEditor' ) ;
135+ const opts : vscode . TextDocumentShowOptions = {
136+ viewColumn : openToTheside ? vscode . ViewColumn . Beside : vscode . ViewColumn . Active
137+ } ;
138+
139+ vscode . commands . executeCommand ( 'vscode.diff' , leftUri , rightUri , title , opts ) ;
129140 }
130141
131142 navigateNext ( editor : vscode . TextEditor ) : Promise < void > {
0 commit comments