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

fix #39865

上级 51e5dfda
......@@ -323,13 +323,15 @@ export abstract class BaseFocusSideGroupAction extends Action {
else if (referenceEditor) {
const history = this.historyService.getHistory();
for (let input of history) {
if (input instanceof EditorInput && input.supportsSplitEditor()) {
if (input instanceof EditorInput) {
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 TPromise.as(true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册