提交 2c987b22 编写于 作者: B Benjamin Pasero

fix #39865

上级 51e5dfda
...@@ -323,11 +323,13 @@ export abstract class BaseFocusSideGroupAction extends Action { ...@@ -323,11 +323,13 @@ export abstract class BaseFocusSideGroupAction extends Action {
else if (referenceEditor) { else if (referenceEditor) {
const history = this.historyService.getHistory(); const history = this.historyService.getHistory();
for (let input of history) { for (let input of history) {
if (input instanceof EditorInput && input.supportsSplitEditor()) { if (input instanceof EditorInput) {
return this.editorService.openEditor(input, { pinned: true }, this.getTargetEditorSide()); if (input.supportsSplitEditor()) {
return this.editorService.openEditor(input, { pinned: true }, this.getTargetEditorSide());
}
} else {
return this.editorService.openEditor({ resource: (input as IResourceInput).resource, options: { pinned: true } }, this.getTargetEditorSide());
} }
return this.editorService.openEditor({ resource: (input as IResourceInput).resource, options: { pinned: true } }, this.getTargetEditorSide());
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册