mirror of
https://github.com/coder/code-server.git
synced 2026-06-08 13:24:31 +00:00
Update to VS Code 1.52.1
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
@@ -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."),
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user