Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/util/common/test/shims/themes.ts
13405 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
export class ThemeIcon {
7
8
static File: ThemeIcon;
9
static Folder: ThemeIcon;
10
11
readonly id: string;
12
readonly color?: ThemeColor;
13
14
constructor(id: string, color?: ThemeColor) {
15
this.id = id;
16
this.color = color;
17
}
18
19
static isThemeIcon(thing: unknown) {
20
if (thing instanceof ThemeIcon) {
21
return false;
22
}
23
return true;
24
}
25
}
26
27
28
export class ThemeColor {
29
id: string;
30
constructor(id: string) {
31
this.id = id;
32
}
33
}
34
35