Merge from vscode e5834d3280fcd04898efeac32b9cf1b893f9b127 (#9385)

* Merge from vscode e5834d3280fcd04898efeac32b9cf1b893f9b127

* distro
This commit is contained in:
Anthony Dresser
2020-02-28 00:37:06 -08:00
committed by GitHub
parent 70851716f7
commit 5d13ebf0d2
143 changed files with 1711 additions and 934 deletions

View File

@@ -20,9 +20,15 @@ export interface ViewWelcome {
export type ViewsWelcomeExtensionPoint = ViewWelcome[];
export const ViewIdentifierMap: { [key: string]: string } = {
'explorer': 'workbench.explorer.emptyView',
'debug': 'workbench.debug.startView',
'scm': 'workbench.scm',
};
const viewsWelcomeExtensionPointSchema = Object.freeze<IConfigurationPropertySchema>({
type: 'array',
description: nls.localize('contributes.viewsWelcome', "Contributed views welcome content."),
description: nls.localize('contributes.viewsWelcome', "Contributed views welcome content. Welcome content will be rendered in views whenever they have no meaningful content to display, ie. the File Explorer when no folder is open. Such content is useful as in-product documentation to drive users to use certain features before they are available. A good example would be a `Clone Repository` button in the File Explorer welcome view."),
items: {
type: 'object',
description: nls.localize('contributes.viewsWelcome.view', "Contributed welcome content for a specific view."),
@@ -33,15 +39,16 @@ const viewsWelcomeExtensionPointSchema = Object.freeze<IConfigurationPropertySch
properties: {
[ViewsWelcomeExtensionPointFields.view]: {
type: 'string',
description: nls.localize('contributes.viewsWelcome.view.view', "View identifier for this welcome content."),
description: nls.localize('contributes.viewsWelcome.view.view', "Target view identifier for this welcome content."),
enum: Object.keys(ViewIdentifierMap),
},
[ViewsWelcomeExtensionPointFields.contents]: {
type: 'string',
description: nls.localize('contributes.viewsWelcome.view.contents', "Welcome content."),
description: nls.localize('contributes.viewsWelcome.view.contents', "Welcome content to be displayed. The format of the contents is a subset of Markdown, with support for links only."),
},
[ViewsWelcomeExtensionPointFields.when]: {
type: 'string',
description: nls.localize('contributes.viewsWelcome.view.when', "When clause for this welcome content."),
description: nls.localize('contributes.viewsWelcome.view.when', "Condition when the welcome content should be displayed."),
},
}
}