Skip to content

Commit 5c2f9eb

Browse files
xiaoyun94FANG.Ge
andauthored
Fix browser host open additional files in merge mode (microsoft#205663)
Co-authored-by: FANG.Ge <[email protected]>
1 parent f34d48a commit 5c2f9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/services/host/browser/browserHostService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export class BrowserHostService extends Disposable implements IHostService {
307307
}
308308

309309
// Support diffMode
310-
if (options?.diffMode && fileOpenables.length === 2) {
310+
else if (options?.diffMode && fileOpenables.length === 2) {
311311
const editors = coalesce(await pathsToEditors(fileOpenables, this.fileService, this.logService));
312312
if (editors.length !== 2 || !isResourceEditorInput(editors[0]) || !isResourceEditorInput(editors[1])) {
313313
return; // invalid resources

0 commit comments

Comments
 (0)