diff --git a/src/build/generate-contributions.ts b/src/build/generate-contributions.ts index ba976545..77b5686b 100644 --- a/src/build/generate-contributions.ts +++ b/src/build/generate-contributions.ts @@ -58,12 +58,18 @@ type OmittedKeysFromAttributes = | '__remoteFilePrefix' | '__sessionId'; +const enum Tag { + // A useful attribute for project setup. + Setup = 'setup', +} + export type DescribedAttribute = JSONSchema6 & Described & { default: T; docDefault?: string; enum?: Array; enumDescriptions?: MappedReferenceString[]; + tags?: Tag[]; }; type ConfigurationAttributes = { @@ -149,6 +155,7 @@ const baseConfigurationAttributes: ConfigurationAttributes = items: { type: 'string', }, + tags: [Tag.Setup], }, pauseForSourceMap: { type: 'boolean', @@ -317,6 +324,7 @@ const nodeBaseConfigurationAttributes: ConfigurationAttributes = { description: refString('node.port.description'), default: 9229, oneOf: intOrEvaluated, + tags: [Tag.Setup], }, websocketAddress: { type: 'string', @@ -586,11 +596,13 @@ const nodeLaunchConfig: IDebugger = { type: 'string', description: refString('node.launch.cwd.description'), default: '${workspaceFolder}', + tags: [Tag.Setup], }, program: { type: 'string', description: refString('node.launch.program.description'), default: '', + tags: [Tag.Setup], }, stopOnEntry: { type: ['boolean', 'string'], @@ -615,6 +627,7 @@ const nodeLaunchConfig: IDebugger = { type: 'string', }, default: [], + tags: [Tag.Setup], }, restart: { description: refString('node.launch.restart.description'), @@ -637,6 +650,7 @@ const nodeLaunchConfig: IDebugger = { type: 'string', }, default: [], + tags: [Tag.Setup], }, profileStartup: { type: 'boolean', @@ -687,6 +701,7 @@ const nodeTerminalConfiguration: IDebugger = { type: ['string', 'null'], description: refString('debug.terminal.program.description'), default: 'npm start', + tags: [Tag.Setup], }, }, defaults: terminalBaseDefaults, @@ -711,6 +726,7 @@ const chromiumBaseConfigurationAttributes: ConfigurationAttributes = { type: 'string', description: refString('browser.file.description'), default: '${workspaceFolder}/index.html', + tags: [Tag.Setup], }, userDataDir: { type: ['string', 'boolean'], @@ -947,6 +966,7 @@ const extensionHostConfig: IDebugger = { type: 'string', }, default: ['--extensionDevelopmentPath=${workspaceFolder}'], + tags: [Tag.Setup], }, runtimeExecutable: { type: ['string', 'null'],