未验证 提交 f0a0c734 编写于 作者: L Logan Ramos

Fix #126563

上级 86801549
......@@ -128,8 +128,8 @@ export class EditorOverrideService extends Disposable implements IEditorOverride
}
// If it's the currently active editor we shouldn't do anything
const currentEditors = group.findEditors(resource);
const isActive = currentEditors.find(editor => (editor as IRegisteredEditorInput).viewType === selectedEditor.editorInfo.id);
const activeEditor = group.activeEditor;
const isActive = activeEditor ? (activeEditor as IRegisteredEditorInput).viewType === selectedEditor.editorInfo.id && isEqual(activeEditor.resource, resource) : false;
if (isActive) {
return OverrideStatus.ABORT;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册