mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
open query editor as default editor (#15874)
This commit is contained in:
@@ -286,7 +286,8 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
|
||||
if (this.isEmpty) {
|
||||
EventHelper.stop(e);
|
||||
|
||||
this.openEditor(this.editorService.createEditorInput({ forceUntitled: true }), EditorOptions.create({ pinned: true }));
|
||||
// {{SQL CARBON EDIT}} - use editor service to open editor, which will go through the override step and resolve to UntitledQueryEditorInput.
|
||||
this.editorService.openEditor(this.editorService.createEditorInput({ forceUntitled: true }), EditorOptions.create({ pinned: true }));
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
@@ -236,14 +236,13 @@ export class TabsTitleControl extends TitleControl {
|
||||
}
|
||||
|
||||
EventHelper.stop(e);
|
||||
|
||||
this.group.openEditor(
|
||||
// {{SQL CARBON EDIT}} - use editor service to open editor, which will go through the override step and resolve to UntitledQueryEditorInput.
|
||||
this.editorService.openEditor(
|
||||
this.editorService.createEditorInput({ forceUntitled: true }),
|
||||
{
|
||||
pinned: true, // untitled is always pinned
|
||||
index: this.group.count // always at the end
|
||||
}
|
||||
);
|
||||
}, this.group);
|
||||
}));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user