mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-29 16:20:29 -04:00
Merge from vscode 9bc92b48d945144abb405b9e8df05e18accb9148
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as nls from 'vs/nls';
|
||||
import { IConfigurationPropertySchema } from 'vs/platform/configuration/common/configurationRegistry';
|
||||
|
||||
export enum ViewsWelcomeExtensionPointFields {
|
||||
view = 'view',
|
||||
contents = 'contents',
|
||||
when = 'when',
|
||||
}
|
||||
|
||||
export interface ViewWelcome {
|
||||
readonly [ViewsWelcomeExtensionPointFields.view]: string;
|
||||
readonly [ViewsWelcomeExtensionPointFields.contents]: string;
|
||||
readonly [ViewsWelcomeExtensionPointFields.when]: string;
|
||||
}
|
||||
|
||||
export type ViewsWelcomeExtensionPoint = ViewWelcome[];
|
||||
|
||||
const viewsWelcomeExtensionPointSchema = Object.freeze<IConfigurationPropertySchema>({
|
||||
type: 'array',
|
||||
description: nls.localize('contributes.viewsWelcome', "Contributed views welcome content."),
|
||||
items: {
|
||||
type: 'object',
|
||||
description: nls.localize('contributes.viewsWelcome.view', "Contributed welcome content for a specific view."),
|
||||
required: [
|
||||
ViewsWelcomeExtensionPointFields.view,
|
||||
ViewsWelcomeExtensionPointFields.contents
|
||||
],
|
||||
properties: {
|
||||
[ViewsWelcomeExtensionPointFields.view]: {
|
||||
type: 'string',
|
||||
description: nls.localize('contributes.viewsWelcome.view.view', "View identifier for this welcome content."),
|
||||
},
|
||||
[ViewsWelcomeExtensionPointFields.contents]: {
|
||||
type: 'string',
|
||||
description: nls.localize('contributes.viewsWelcome.view.contents', "Welcome content."),
|
||||
},
|
||||
[ViewsWelcomeExtensionPointFields.when]: {
|
||||
type: 'string',
|
||||
description: nls.localize('contributes.viewsWelcome.view.when', "When clause for this welcome content."),
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export const viewsWelcomeExtensionPointDescriptor = {
|
||||
extensionPoint: 'viewsWelcome',
|
||||
jsonSchema: viewsWelcomeExtensionPointSchema
|
||||
};
|
||||
Reference in New Issue
Block a user