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