mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-19 14:49:48 +01:00
open new editors from double-click always at the end (fixes #10208)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user