提交 42e0dbec 编写于 作者: B Benjamin Pasero

grid - allow to split even editors that do not support splitting

上级 94094e2a
......@@ -132,16 +132,16 @@ export class BaseSplitEditorGroupAction extends Action {
group = this.nextEditorGroupsService.activeGroup;
}
const activeEditor = group.activeEditor;
if (activeEditor instanceof EditorInput && !activeEditor.supportsSplitEditor()) {
return TPromise.as(false);
}
// Add group
const newGroup = this.nextEditorGroupsService.addGroup(group, this.direction, { activate: true });
// Open editor
// Open editor (unless it cannot split)
const activeEditor = group.activeEditor;
if (activeEditor) {
if (activeEditor instanceof EditorInput && !activeEditor.supportsSplitEditor()) {
return TPromise.as(false);
}
let options: EditorOptions;
const codeEditor = getCodeEditor(group.activeControl.getControl());
if (codeEditor) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册