Update to VS Code 1.52.1

This commit is contained in:
Asher
2021-02-09 16:08:37 +00:00
1351 changed files with 56560 additions and 38990 deletions

View File

@@ -36,9 +36,11 @@ export class ViewsWelcomeContribution extends Disposable implements IWorkbenchCo
for (const welcome of contribution.value) {
const id = ViewIdentifierMap[welcome.view] ?? welcome.view;
const { group, order } = parseGroupAndOrder(welcome, contribution);
const precondition = ContextKeyExpr.deserialize(welcome.enablement);
const disposable = viewsRegistry.registerViewWelcomeContent(id, {
content: welcome.contents,
when: ContextKeyExpr.deserialize(welcome.when),
precondition,
group,
order
});

View File

@@ -11,6 +11,7 @@ export enum ViewsWelcomeExtensionPointFields {
contents = 'contents',
when = 'when',
group = 'group',
enablement = 'enablement',
}
export interface ViewWelcome {
@@ -18,6 +19,7 @@ export interface ViewWelcome {
readonly [ViewsWelcomeExtensionPointFields.contents]: string;
readonly [ViewsWelcomeExtensionPointFields.when]: string;
readonly [ViewsWelcomeExtensionPointFields.group]: string;
readonly [ViewsWelcomeExtensionPointFields.enablement]: string;
}
export type ViewsWelcomeExtensionPoint = ViewWelcome[];
@@ -64,6 +66,10 @@ const viewsWelcomeExtensionPointSchema = Object.freeze<IConfigurationPropertySch
type: 'string',
description: nls.localize('contributes.viewsWelcome.view.group', "Group to which this welcome content belongs."),
},
[ViewsWelcomeExtensionPointFields.enablement]: {
type: 'string',
description: nls.localize('contributes.viewsWelcome.view.enablement', "Condition when the welcome content buttons should be enabled."),
},
}
}
});