mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
do not open an editor when editing a diff editor
This commit is contained in:
@@ -515,7 +515,7 @@ export class EditorGroup implements IEditorGroup {
|
||||
}
|
||||
|
||||
private updateResourceMap(editor: EditorInput, remove: boolean): void {
|
||||
const resource = getUntitledOrFileResource(editor);
|
||||
const resource = getUntitledOrFileResource(editor, true /* include diff editors */);
|
||||
if (resource) {
|
||||
this.mapResourceToEditor[resource.toString()] = remove ? void 0 : editor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user