Path: blob/main/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { localize } from '../../../../nls.js';6import { IJSONSchema } from '../../../../base/common/jsonSchema.js';7import { EXTENSION_IDENTIFIER_PATTERN } from '../../../../platform/extensionManagement/common/extensionManagement.js';89export const ExtensionsConfigurationSchemaId = 'vscode://schemas/extensions';10export const ExtensionsConfigurationSchema: IJSONSchema = {11id: ExtensionsConfigurationSchemaId,12allowComments: true,13allowTrailingCommas: true,14type: 'object',15title: localize('app.extensions.json.title', "Extensions"),16additionalProperties: false,17properties: {18recommendations: {19type: 'array',20description: localize('app.extensions.json.recommendations', "List of extensions which should be recommended for users of this workspace. The identifier of an extension is always '${publisher}.${name}'. For example: 'vscode.csharp'."),21items: {22type: 'string',23pattern: EXTENSION_IDENTIFIER_PATTERN,24errorMessage: localize('app.extension.identifier.errorMessage', "Expected format '${publisher}.${name}'. Example: 'vscode.csharp'.")25},26},27unwantedRecommendations: {28type: 'array',29description: localize('app.extensions.json.unwantedRecommendations', "List of extensions recommended by VS Code that should not be recommended for users of this workspace. The identifier of an extension is always '${publisher}.${name}'. For example: 'vscode.csharp'."),30items: {31type: 'string',32pattern: EXTENSION_IDENTIFIER_PATTERN,33errorMessage: localize('app.extension.identifier.errorMessage', "Expected format '${publisher}.${name}'. Example: 'vscode.csharp'.")34},35},36}37};3839export const ExtensionsConfigurationInitialContent: string = [40'{',41'\t// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.',42'\t// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp',43'',44'\t// List of extensions which should be recommended for users of this workspace.',45'\t"recommendations": [',46'\t\t',47'\t],',48'\t// List of extensions recommended by VS Code that should not be recommended for users of this workspace.',49'\t"unwantedRecommendations": [',50'\t\t',51'\t]',52'}'53].join('\n');545556