UNPKG

projen

Version:

CDK for software projects

39 lines (38 loc) 1.55 kB
import { VsCode } from "./vscode"; import { Component } from "../component"; import { JsonFile } from "../json"; /** * VS Code Workspace recommended extensions * Source: https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions */ export declare class VsCodeRecommendedExtensions extends Component { /** * List of extensions which should be recommended for users of this workspace. * The identifier of an extension is always '${publisher}.${name}'. For example: 'ms-python.python'. * * @default - no recommendations are made */ private readonly recommendations; /** * 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: 'ms-python.python'. * * @default - no recommendations are marked unwanted */ private readonly unwantedRecommendations; readonly file: JsonFile; constructor(vscode: VsCode); /** * Adds a list of VS Code extensions as recommendations for this workspace. * * @param extensions The extension IDs */ addRecommendations(...extensions: string[]): void; /** * Marks a list of VS Code extensions as unwanted recommendations for this workspace. * VS Code should not be recommend these extensions for users of this workspace. * * @param extensions The extension IDs */ addUnwantedRecommendations(...extensions: string[]): void; }