mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
Isolate features (#6792)
* working; new query and scripting * working; removing manage from menus and combining data explorer contributions * consolidate dashboard contributions; move manage action to dashboard contributions; make groupings the same * fix notebook actions * fix tests
This commit is contained in:
@@ -12,7 +12,6 @@ import { IConfigurationRegistry, Extensions as ConfigExtensions } from 'vs/platf
|
||||
|
||||
new Actions.BackupAction().registerTask();
|
||||
new Actions.RestoreAction().registerTask();
|
||||
new Actions.NewQueryAction().registerTask();
|
||||
new Actions.ConfigureDashboardAction().registerTask();
|
||||
|
||||
Registry.as<IConfigurationRegistry>(ConfigExtensions.Configuration).registerConfiguration({
|
||||
|
||||
@@ -41,32 +41,6 @@ export interface ManageActionContext extends BaseActionContext {
|
||||
uri: string;
|
||||
}
|
||||
|
||||
// --- actions
|
||||
export class NewQueryAction extends Task {
|
||||
public static ID = 'newQuery';
|
||||
public static LABEL = nls.localize('newQueryAction.newQuery', "New Query");
|
||||
public static ICON = 'new-query';
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
id: NewQueryAction.ID,
|
||||
title: NewQueryAction.LABEL,
|
||||
iconPath: undefined,
|
||||
iconClass: NewQueryAction.ICON
|
||||
});
|
||||
}
|
||||
|
||||
public runTask(accessor: ServicesAccessor, profile: IConnectionProfile): Promise<void> {
|
||||
return TaskUtilities.newQuery(
|
||||
profile,
|
||||
accessor.get<IConnectionManagementService>(IConnectionManagementService),
|
||||
accessor.get<IQueryEditorService>(IQueryEditorService),
|
||||
accessor.get<IObjectExplorerService>(IObjectExplorerService),
|
||||
accessor.get<IEditorService>(IEditorService)
|
||||
).then();
|
||||
}
|
||||
}
|
||||
|
||||
export const BackupFeatureName = 'backup';
|
||||
|
||||
export class BackupAction extends Task {
|
||||
|
||||
Reference in New Issue
Block a user