-
Notifications
You must be signed in to change notification settings - Fork 31.8k
/
Copy pathvscode.proposed.codiconDecoration.d.ts
48 lines (40 loc) · 1.36 KB
/
vscode.proposed.codiconDecoration.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*---------------------------------------------------------------------------------------------
* 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);
}
}