Skip to content

Commit a93f7be

Browse files
committed
Fix notebook diff closing
1 parent 2687b53 commit a93f7be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/api/browser/mainThreadEditorTabs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ export class MainThreadEditorTabs {
7474
return { resource: URI.revive(tab.resource), options: { override: tab.editorId } };
7575
} else if (tab.kind === TabKind.SidebySide) {
7676
return {
77+
options: { override: tab.editorId },
7778
primary: { resource: URI.revive(tab.resource), options: { override: tab.editorId } },
7879
secondary: { resource: URI.revive(tab.additionalResourcesAndViewIds[1].resource), options: { override: tab.additionalResourcesAndViewIds[1].viewId } }
7980
};
8081
} else {
8182
// Diff case
8283
return {
84+
options: { override: tab.editorId },
8385
modified: { resource: URI.revive(tab.resource), options: { override: tab.editorId } },
8486
original: { resource: URI.revive(tab.additionalResourcesAndViewIds[1].resource), options: { override: tab.additionalResourcesAndViewIds[1]?.viewId } }
8587
};

0 commit comments

Comments
 (0)