Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vscode-dts/vscode.proposed.codiconDecoration.d.ts
3290 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
declare module 'vscode' {
7
8
// https://github.com/microsoft/vscode/issues/135591 @alexr00
9
10
// export interface FileDecorationProvider {
11
// provideFileDecoration(uri: Uri, token: CancellationToken): ProviderResult<FileDecoration | FileDecoration1>;
12
// }
13
14
/**
15
* A file decoration represents metadata that can be rendered with a file.
16
*/
17
export class FileDecoration2 {
18
/**
19
* A very short string that represents this decoration.
20
*/
21
badge?: string | ThemeIcon;
22
23
/**
24
* A human-readable tooltip for this decoration.
25
*/
26
tooltip?: string;
27
28
/**
29
* The color of this decoration.
30
*/
31
color?: ThemeColor;
32
33
/**
34
* A flag expressing that this decoration should be
35
* propagated to its parents.
36
*/
37
propagate?: boolean;
38
39
/**
40
* Creates a new decoration.
41
*
42
* @param badge A letter that represents the decoration.
43
* @param tooltip The tooltip of the decoration.
44
* @param color The color of the decoration.
45
*/
46
constructor(badge?: string | ThemeIcon, tooltip?: string, color?: ThemeColor);
47
}
48
}
49
50