mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 17:23:40 -05:00
Task context + schema (#849)
* commting .d.ts changes * added serverinfo to .d.ts * maybe its working? * works * updated contrib * remove unnecessary code * fix compile errors * update task schema and add the ability to specifiy a when clause * update defaults for tasks widget * add when to restore and back up tasks to not show up for cloud servers * formatting * fixing engine * add restore to server page
This commit is contained in:
@@ -6,8 +6,10 @@ import { IInsightsConfig } from 'sql/parts/dashboard/widgets/insights/interfaces
|
||||
|
||||
import * as platform from 'vs/platform/registry/common/platform';
|
||||
import { IJSONSchema, IJSONSchemaMap } from 'vs/base/common/jsonSchema';
|
||||
import { IJSONContributionRegistry, Extensions as JSONExtensions } from 'vs/platform/jsonschemas/common/jsonContributionRegistry';
|
||||
import * as nls from 'vs/nls';
|
||||
import { deepClone } from 'vs/base/common/objects';
|
||||
|
||||
const contributionRegistry = platform.Registry.as<IJSONContributionRegistry>(JSONExtensions.JSONContribution);
|
||||
|
||||
export type WidgetIdentifier = string;
|
||||
|
||||
@@ -89,15 +91,15 @@ class DashboardWidgetRegistry implements IDashboardWidgetRegistry {
|
||||
}
|
||||
|
||||
public get databaseWidgetSchema(): CustomIJSONSchema {
|
||||
return deepClone(this._dashboardWidgetSchema);
|
||||
return this._dashboardWidgetSchema;
|
||||
}
|
||||
|
||||
public get serverWidgetSchema(): CustomIJSONSchema {
|
||||
return deepClone(this._serverWidgetSchema);
|
||||
return this._serverWidgetSchema;
|
||||
}
|
||||
|
||||
public get allSchema(): CustomIJSONSchema {
|
||||
return deepClone(this._allSchema);
|
||||
return this._allSchema;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user