提交 e8014cc4 编写于 作者: B Benjamin Pasero

open new editors from double-click always at the end (fixes #10208)

上级 5233bea8
......@@ -89,7 +89,9 @@ export class TabsTitleControl extends TitleControl {
if (target instanceof HTMLElement && target.className.indexOf('tabs-container') === 0) {
DOM.EventHelper.stop(e);
return this.editorService.openEditor(this.untitledEditorService.createOrGet(), { pinned: true }); // untitled are always pinned
const group = this.context;
return this.editorService.openEditor(this.untitledEditorService.createOrGet(), { pinned: true, index: group.count /* always at the end */ }); // untitled are always pinned
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册