Path: blob/main/src/vscode-dts/vscode.proposed.codiconDecoration.d.ts
3290 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*--------------------------------------------------------------------------------------------*/45declare module 'vscode' {67// https://github.com/microsoft/vscode/issues/135591 @alexr0089// export interface FileDecorationProvider {10// provideFileDecoration(uri: Uri, token: CancellationToken): ProviderResult<FileDecoration | FileDecoration1>;11// }1213/**14* A file decoration represents metadata that can be rendered with a file.15*/16export class FileDecoration2 {17/**18* A very short string that represents this decoration.19*/20badge?: string | ThemeIcon;2122/**23* A human-readable tooltip for this decoration.24*/25tooltip?: string;2627/**28* The color of this decoration.29*/30color?: ThemeColor;3132/**33* A flag expressing that this decoration should be34* propagated to its parents.35*/36propagate?: boolean;3738/**39* Creates a new decoration.40*41* @param badge A letter that represents the decoration.42* @param tooltip The tooltip of the decoration.43* @param color The color of the decoration.44*/45constructor(badge?: string | ThemeIcon, tooltip?: string, color?: ThemeColor);46}47}484950