Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/util/vs/base/common/codicons.ts
13405 views
1
//!!! DO NOT modify, this file was COPIED from 'microsoft/vscode'
2
3
/*---------------------------------------------------------------------------------------------
4
* Copyright (c) Microsoft Corporation. All rights reserved.
5
* Licensed under the MIT License. See License.txt in the project root for license information.
6
*--------------------------------------------------------------------------------------------*/
7
import { ThemeIcon } from './themables';
8
import { register } from './codiconsUtil';
9
import { codiconsLibrary } from './codiconsLibrary';
10
11
12
/**
13
* Only to be used by the iconRegistry.
14
*/
15
export function getAllCodicons(): ThemeIcon[] {
16
return Object.values(Codicon);
17
}
18
19
/**
20
* Derived icons, that could become separate icons.
21
* These mappings should be moved into the mapping file in the vscode-codicons repo at some point.
22
*/
23
export const codiconsDerived = {
24
dialogError: register('dialog-error', 'error'),
25
dialogWarning: register('dialog-warning', 'warning'),
26
dialogInfo: register('dialog-info', 'info'),
27
dialogClose: register('dialog-close', 'close'),
28
treeItemExpanded: register('tree-item-expanded', 'chevron-down'), // collapsed is done with rotation
29
treeFilterOnTypeOn: register('tree-filter-on-type-on', 'list-filter'),
30
treeFilterOnTypeOff: register('tree-filter-on-type-off', 'list-selection'),
31
treeFilterClear: register('tree-filter-clear', 'close'),
32
treeItemLoading: register('tree-item-loading', 'loading'),
33
menuSelection: register('menu-selection', 'check'),
34
menuSubmenu: register('menu-submenu', 'chevron-right'),
35
menuBarMore: register('menubar-more', 'more'),
36
scrollbarButtonLeft: register('scrollbar-button-left', 'triangle-left'),
37
scrollbarButtonRight: register('scrollbar-button-right', 'triangle-right'),
38
scrollbarButtonUp: register('scrollbar-button-up', 'triangle-up'),
39
scrollbarButtonDown: register('scrollbar-button-down', 'triangle-down'),
40
toolBarMore: register('toolbar-more', 'more'),
41
quickInputBack: register('quick-input-back', 'arrow-left'),
42
dropDownButton: register('drop-down-button', 0xeab4),
43
symbolCustomColor: register('symbol-customcolor', 0xeb5c),
44
exportIcon: register('export', 0xebac),
45
workspaceUnspecified: register('workspace-unspecified', 0xebc3),
46
newLine: register('newline', 0xebea),
47
thumbsDownFilled: register('thumbsdown-filled', 0xec13),
48
thumbsUpFilled: register('thumbsup-filled', 0xec14),
49
gitFetch: register('git-fetch', 0xec1d),
50
lightbulbSparkleAutofix: register('lightbulb-sparkle-autofix', 0xec1f),
51
debugBreakpointPending: register('debug-breakpoint-pending', 0xebd9),
52
53
} as const;
54
55
/**
56
* The Codicon library is a set of default icons that are built-in in VS Code.
57
*
58
* In the product (outside of base) Codicons should only be used as defaults. In order to have all icons in VS Code
59
* themeable, component should define new, UI component specific icons using `iconRegistry.registerIcon`.
60
* In that call a Codicon can be named as default.
61
*/
62
export const Codicon = {
63
...codiconsLibrary,
64
...codiconsDerived
65
66
} as const;
67
68