mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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) {
|
if (this.isEmpty) {
|
||||||
EventHelper.stop(e);
|
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);
|
EventHelper.stop(e);
|
||||||
|
// {{SQL CARBON EDIT}} - use editor service to open editor, which will go through the override step and resolve to UntitledQueryEditorInput.
|
||||||
this.group.openEditor(
|
this.editorService.openEditor(
|
||||||
this.editorService.createEditorInput({ forceUntitled: true }),
|
this.editorService.createEditorInput({ forceUntitled: true }),
|
||||||
{
|
{
|
||||||
pinned: true, // untitled is always pinned
|
pinned: true, // untitled is always pinned
|
||||||
index: this.group.count // always at the end
|
index: this.group.count // always at the end
|
||||||
}
|
}, this.group);
|
||||||
);
|
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user