Files
vscode/src/vscode-dts/vscode.proposed.codiconDecoration.d.ts
Alex Ross f1c9243888 Enable codicon decorations (#166358)
* Enable codicon decorations
Part of #135591

* Fix test compile error

* Add proposal reference

* Address feedback
2022-11-15 16:43:57 +01:00

49 lines
1.4 KiB
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare module 'vscode' {
// https://github.com/microsoft/vscode/issues/135591 @alexr00
// export interface FileDecorationProvider {
// provideFileDecoration(uri: Uri, token: CancellationToken): ProviderResult<FileDecoration | FileDecoration1>;
// }
/**
* A file decoration represents metadata that can be rendered with a file.
*/
export class FileDecoration2 {
/**
* A very short string that represents this decoration.
*/
badge?: string | ThemeIcon;
/**
* A human-readable tooltip for this decoration.
*/
tooltip?: string;
/**
* The color of this decoration.
*/
color?: ThemeColor;
/**
* A flag expressing that this decoration should be
* propagated to its parents.
*/
propagate?: boolean;
/**
* Creates a new decoration.
*
* @param badge A letter that represents the decoration.
* @param tooltip The tooltip of the decoration.
* @param color The color of the decoration.
*/
constructor(badge?: string | ThemeIcon, tooltip?: string, color?: ThemeColor);
}
}