UNPKG

sussudio

Version:

An unofficial VS Code Internal API

612 lines (611 loc) 47.1 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ // Selects all codicon names encapsulated in the `$()` syntax and wraps the // results with spaces so that screen readers can read the text better. export function getCodiconAriaLabel(text) { if (!text) { return ''; } return text.replace(/\$\((.*?)\)/g, (_match, codiconName) => ` ${codiconName} `).trim(); } /** * The Codicon library is a set of default icons that are built-in in VS Code. * * In the product (outside of base) Codicons should only be used as defaults. In order to have all icons in VS Code * themeable, component should define new, UI component specific icons using `iconRegistry.registerIcon`. * In that call a Codicon can be named as default. */ export class Codicon { id; definition; description; constructor(id, definition, description) { this.id = id; this.definition = definition; this.description = description; Codicon._allCodicons.push(this); } get classNames() { return 'codicon codicon-' + this.id; } // classNamesArray is useful for migrating to ES6 classlist get classNamesArray() { return ['codicon', 'codicon-' + this.id]; } get cssSelector() { return '.codicon.codicon-' + this.id; } // registry static _allCodicons = []; /** * @returns Returns all default icons covered by the codicon font. Only to be used by the icon registry in platform. */ static getAll() { return Codicon._allCodicons; } // built-in icons, with image name static add = new Codicon('add', { fontCharacter: '\\ea60' }); static plus = new Codicon('plus', Codicon.add.definition); static gistNew = new Codicon('gist-new', Codicon.add.definition); static repoCreate = new Codicon('repo-create', Codicon.add.definition); static lightbulb = new Codicon('lightbulb', { fontCharacter: '\\ea61' }); static lightBulb = new Codicon('light-bulb', { fontCharacter: '\\ea61' }); static repo = new Codicon('repo', { fontCharacter: '\\ea62' }); static repoDelete = new Codicon('repo-delete', { fontCharacter: '\\ea62' }); static gistFork = new Codicon('gist-fork', { fontCharacter: '\\ea63' }); static repoForked = new Codicon('repo-forked', { fontCharacter: '\\ea63' }); static gitPullRequest = new Codicon('git-pull-request', { fontCharacter: '\\ea64' }); static gitPullRequestAbandoned = new Codicon('git-pull-request-abandoned', { fontCharacter: '\\ea64' }); static recordKeys = new Codicon('record-keys', { fontCharacter: '\\ea65' }); static keyboard = new Codicon('keyboard', { fontCharacter: '\\ea65' }); static tag = new Codicon('tag', { fontCharacter: '\\ea66' }); static tagAdd = new Codicon('tag-add', { fontCharacter: '\\ea66' }); static tagRemove = new Codicon('tag-remove', { fontCharacter: '\\ea66' }); static person = new Codicon('person', { fontCharacter: '\\ea67' }); static personFollow = new Codicon('person-follow', { fontCharacter: '\\ea67' }); static personOutline = new Codicon('person-outline', { fontCharacter: '\\ea67' }); static personFilled = new Codicon('person-filled', { fontCharacter: '\\ea67' }); static gitBranch = new Codicon('git-branch', { fontCharacter: '\\ea68' }); static gitBranchCreate = new Codicon('git-branch-create', { fontCharacter: '\\ea68' }); static gitBranchDelete = new Codicon('git-branch-delete', { fontCharacter: '\\ea68' }); static sourceControl = new Codicon('source-control', { fontCharacter: '\\ea68' }); static mirror = new Codicon('mirror', { fontCharacter: '\\ea69' }); static mirrorPublic = new Codicon('mirror-public', { fontCharacter: '\\ea69' }); static star = new Codicon('star', { fontCharacter: '\\ea6a' }); static starAdd = new Codicon('star-add', { fontCharacter: '\\ea6a' }); static starDelete = new Codicon('star-delete', { fontCharacter: '\\ea6a' }); static starEmpty = new Codicon('star-empty', { fontCharacter: '\\ea6a' }); static comment = new Codicon('comment', { fontCharacter: '\\ea6b' }); static commentAdd = new Codicon('comment-add', { fontCharacter: '\\ea6b' }); static alert = new Codicon('alert', { fontCharacter: '\\ea6c' }); static warning = new Codicon('warning', { fontCharacter: '\\ea6c' }); static search = new Codicon('search', { fontCharacter: '\\ea6d' }); static searchSave = new Codicon('search-save', { fontCharacter: '\\ea6d' }); static logOut = new Codicon('log-out', { fontCharacter: '\\ea6e' }); static signOut = new Codicon('sign-out', { fontCharacter: '\\ea6e' }); static logIn = new Codicon('log-in', { fontCharacter: '\\ea6f' }); static signIn = new Codicon('sign-in', { fontCharacter: '\\ea6f' }); static eye = new Codicon('eye', { fontCharacter: '\\ea70' }); static eyeUnwatch = new Codicon('eye-unwatch', { fontCharacter: '\\ea70' }); static eyeWatch = new Codicon('eye-watch', { fontCharacter: '\\ea70' }); static circleFilled = new Codicon('circle-filled', { fontCharacter: '\\ea71' }); static primitiveDot = new Codicon('primitive-dot', Codicon.circleFilled.definition); static closeDirty = new Codicon('close-dirty', Codicon.circleFilled.definition); static debugBreakpoint = new Codicon('debug-breakpoint', Codicon.circleFilled.definition); static debugBreakpointDisabled = new Codicon('debug-breakpoint-disabled', Codicon.circleFilled.definition); static debugHint = new Codicon('debug-hint', Codicon.circleFilled.definition); static primitiveSquare = new Codicon('primitive-square', { fontCharacter: '\\ea72' }); static edit = new Codicon('edit', { fontCharacter: '\\ea73' }); static pencil = new Codicon('pencil', { fontCharacter: '\\ea73' }); static info = new Codicon('info', { fontCharacter: '\\ea74' }); static issueOpened = new Codicon('issue-opened', { fontCharacter: '\\ea74' }); static gistPrivate = new Codicon('gist-private', { fontCharacter: '\\ea75' }); static gitForkPrivate = new Codicon('git-fork-private', { fontCharacter: '\\ea75' }); static lock = new Codicon('lock', { fontCharacter: '\\ea75' }); static mirrorPrivate = new Codicon('mirror-private', { fontCharacter: '\\ea75' }); static close = new Codicon('close', { fontCharacter: '\\ea76' }); static removeClose = new Codicon('remove-close', { fontCharacter: '\\ea76' }); static x = new Codicon('x', { fontCharacter: '\\ea76' }); static repoSync = new Codicon('repo-sync', { fontCharacter: '\\ea77' }); static sync = new Codicon('sync', { fontCharacter: '\\ea77' }); static clone = new Codicon('clone', { fontCharacter: '\\ea78' }); static desktopDownload = new Codicon('desktop-download', { fontCharacter: '\\ea78' }); static beaker = new Codicon('beaker', { fontCharacter: '\\ea79' }); static microscope = new Codicon('microscope', { fontCharacter: '\\ea79' }); static vm = new Codicon('vm', { fontCharacter: '\\ea7a' }); static deviceDesktop = new Codicon('device-desktop', { fontCharacter: '\\ea7a' }); static file = new Codicon('file', { fontCharacter: '\\ea7b' }); static fileText = new Codicon('file-text', { fontCharacter: '\\ea7b' }); static more = new Codicon('more', { fontCharacter: '\\ea7c' }); static ellipsis = new Codicon('ellipsis', { fontCharacter: '\\ea7c' }); static kebabHorizontal = new Codicon('kebab-horizontal', { fontCharacter: '\\ea7c' }); static mailReply = new Codicon('mail-reply', { fontCharacter: '\\ea7d' }); static reply = new Codicon('reply', { fontCharacter: '\\ea7d' }); static organization = new Codicon('organization', { fontCharacter: '\\ea7e' }); static organizationFilled = new Codicon('organization-filled', { fontCharacter: '\\ea7e' }); static organizationOutline = new Codicon('organization-outline', { fontCharacter: '\\ea7e' }); static newFile = new Codicon('new-file', { fontCharacter: '\\ea7f' }); static fileAdd = new Codicon('file-add', { fontCharacter: '\\ea7f' }); static newFolder = new Codicon('new-folder', { fontCharacter: '\\ea80' }); static fileDirectoryCreate = new Codicon('file-directory-create', { fontCharacter: '\\ea80' }); static trash = new Codicon('trash', { fontCharacter: '\\ea81' }); static trashcan = new Codicon('trashcan', { fontCharacter: '\\ea81' }); static history = new Codicon('history', { fontCharacter: '\\ea82' }); static clock = new Codicon('clock', { fontCharacter: '\\ea82' }); static folder = new Codicon('folder', { fontCharacter: '\\ea83' }); static fileDirectory = new Codicon('file-directory', { fontCharacter: '\\ea83' }); static symbolFolder = new Codicon('symbol-folder', { fontCharacter: '\\ea83' }); static logoGithub = new Codicon('logo-github', { fontCharacter: '\\ea84' }); static markGithub = new Codicon('mark-github', { fontCharacter: '\\ea84' }); static github = new Codicon('github', { fontCharacter: '\\ea84' }); static terminal = new Codicon('terminal', { fontCharacter: '\\ea85' }); static console = new Codicon('console', { fontCharacter: '\\ea85' }); static repl = new Codicon('repl', { fontCharacter: '\\ea85' }); static zap = new Codicon('zap', { fontCharacter: '\\ea86' }); static symbolEvent = new Codicon('symbol-event', { fontCharacter: '\\ea86' }); static error = new Codicon('error', { fontCharacter: '\\ea87' }); static stop = new Codicon('stop', { fontCharacter: '\\ea87' }); static variable = new Codicon('variable', { fontCharacter: '\\ea88' }); static symbolVariable = new Codicon('symbol-variable', { fontCharacter: '\\ea88' }); static array = new Codicon('array', { fontCharacter: '\\ea8a' }); static symbolArray = new Codicon('symbol-array', { fontCharacter: '\\ea8a' }); static symbolModule = new Codicon('symbol-module', { fontCharacter: '\\ea8b' }); static symbolPackage = new Codicon('symbol-package', { fontCharacter: '\\ea8b' }); static symbolNamespace = new Codicon('symbol-namespace', { fontCharacter: '\\ea8b' }); static symbolObject = new Codicon('symbol-object', { fontCharacter: '\\ea8b' }); static symbolMethod = new Codicon('symbol-method', { fontCharacter: '\\ea8c' }); static symbolFunction = new Codicon('symbol-function', { fontCharacter: '\\ea8c' }); static symbolConstructor = new Codicon('symbol-constructor', { fontCharacter: '\\ea8c' }); static symbolBoolean = new Codicon('symbol-boolean', { fontCharacter: '\\ea8f' }); static symbolNull = new Codicon('symbol-null', { fontCharacter: '\\ea8f' }); static symbolNumeric = new Codicon('symbol-numeric', { fontCharacter: '\\ea90' }); static symbolNumber = new Codicon('symbol-number', { fontCharacter: '\\ea90' }); static symbolStructure = new Codicon('symbol-structure', { fontCharacter: '\\ea91' }); static symbolStruct = new Codicon('symbol-struct', { fontCharacter: '\\ea91' }); static symbolParameter = new Codicon('symbol-parameter', { fontCharacter: '\\ea92' }); static symbolTypeParameter = new Codicon('symbol-type-parameter', { fontCharacter: '\\ea92' }); static symbolKey = new Codicon('symbol-key', { fontCharacter: '\\ea93' }); static symbolText = new Codicon('symbol-text', { fontCharacter: '\\ea93' }); static symbolReference = new Codicon('symbol-reference', { fontCharacter: '\\ea94' }); static goToFile = new Codicon('go-to-file', { fontCharacter: '\\ea94' }); static symbolEnum = new Codicon('symbol-enum', { fontCharacter: '\\ea95' }); static symbolValue = new Codicon('symbol-value', { fontCharacter: '\\ea95' }); static symbolRuler = new Codicon('symbol-ruler', { fontCharacter: '\\ea96' }); static symbolUnit = new Codicon('symbol-unit', { fontCharacter: '\\ea96' }); static activateBreakpoints = new Codicon('activate-breakpoints', { fontCharacter: '\\ea97' }); static archive = new Codicon('archive', { fontCharacter: '\\ea98' }); static arrowBoth = new Codicon('arrow-both', { fontCharacter: '\\ea99' }); static arrowDown = new Codicon('arrow-down', { fontCharacter: '\\ea9a' }); static arrowLeft = new Codicon('arrow-left', { fontCharacter: '\\ea9b' }); static arrowRight = new Codicon('arrow-right', { fontCharacter: '\\ea9c' }); static arrowSmallDown = new Codicon('arrow-small-down', { fontCharacter: '\\ea9d' }); static arrowSmallLeft = new Codicon('arrow-small-left', { fontCharacter: '\\ea9e' }); static arrowSmallRight = new Codicon('arrow-small-right', { fontCharacter: '\\ea9f' }); static arrowSmallUp = new Codicon('arrow-small-up', { fontCharacter: '\\eaa0' }); static arrowUp = new Codicon('arrow-up', { fontCharacter: '\\eaa1' }); static bell = new Codicon('bell', { fontCharacter: '\\eaa2' }); static bold = new Codicon('bold', { fontCharacter: '\\eaa3' }); static book = new Codicon('book', { fontCharacter: '\\eaa4' }); static bookmark = new Codicon('bookmark', { fontCharacter: '\\eaa5' }); static debugBreakpointConditionalUnverified = new Codicon('debug-breakpoint-conditional-unverified', { fontCharacter: '\\eaa6' }); static debugBreakpointConditional = new Codicon('debug-breakpoint-conditional', { fontCharacter: '\\eaa7' }); static debugBreakpointConditionalDisabled = new Codicon('debug-breakpoint-conditional-disabled', { fontCharacter: '\\eaa7' }); static debugBreakpointDataUnverified = new Codicon('debug-breakpoint-data-unverified', { fontCharacter: '\\eaa8' }); static debugBreakpointData = new Codicon('debug-breakpoint-data', { fontCharacter: '\\eaa9' }); static debugBreakpointDataDisabled = new Codicon('debug-breakpoint-data-disabled', { fontCharacter: '\\eaa9' }); static debugBreakpointLogUnverified = new Codicon('debug-breakpoint-log-unverified', { fontCharacter: '\\eaaa' }); static debugBreakpointLog = new Codicon('debug-breakpoint-log', { fontCharacter: '\\eaab' }); static debugBreakpointLogDisabled = new Codicon('debug-breakpoint-log-disabled', { fontCharacter: '\\eaab' }); static briefcase = new Codicon('briefcase', { fontCharacter: '\\eaac' }); static broadcast = new Codicon('broadcast', { fontCharacter: '\\eaad' }); static browser = new Codicon('browser', { fontCharacter: '\\eaae' }); static bug = new Codicon('bug', { fontCharacter: '\\eaaf' }); static calendar = new Codicon('calendar', { fontCharacter: '\\eab0' }); static caseSensitive = new Codicon('case-sensitive', { fontCharacter: '\\eab1' }); static check = new Codicon('check', { fontCharacter: '\\eab2' }); static checklist = new Codicon('checklist', { fontCharacter: '\\eab3' }); static chevronDown = new Codicon('chevron-down', { fontCharacter: '\\eab4' }); static dropDownButton = new Codicon('drop-down-button', Codicon.chevronDown.definition); static chevronLeft = new Codicon('chevron-left', { fontCharacter: '\\eab5' }); static chevronRight = new Codicon('chevron-right', { fontCharacter: '\\eab6' }); static chevronUp = new Codicon('chevron-up', { fontCharacter: '\\eab7' }); static chromeClose = new Codicon('chrome-close', { fontCharacter: '\\eab8' }); static chromeMaximize = new Codicon('chrome-maximize', { fontCharacter: '\\eab9' }); static chromeMinimize = new Codicon('chrome-minimize', { fontCharacter: '\\eaba' }); static chromeRestore = new Codicon('chrome-restore', { fontCharacter: '\\eabb' }); static circle = new Codicon('circle', { fontCharacter: '\\eabc' }); static circleOutline = new Codicon('circle-outline', Codicon.circle.definition); static debugBreakpointUnverified = new Codicon('debug-breakpoint-unverified', Codicon.circle.definition); static circleSlash = new Codicon('circle-slash', { fontCharacter: '\\eabd' }); static circuitBoard = new Codicon('circuit-board', { fontCharacter: '\\eabe' }); static clearAll = new Codicon('clear-all', { fontCharacter: '\\eabf' }); static clippy = new Codicon('clippy', { fontCharacter: '\\eac0' }); static closeAll = new Codicon('close-all', { fontCharacter: '\\eac1' }); static cloudDownload = new Codicon('cloud-download', { fontCharacter: '\\eac2' }); static cloudUpload = new Codicon('cloud-upload', { fontCharacter: '\\eac3' }); static code = new Codicon('code', { fontCharacter: '\\eac4' }); static collapseAll = new Codicon('collapse-all', { fontCharacter: '\\eac5' }); static colorMode = new Codicon('color-mode', { fontCharacter: '\\eac6' }); static commentDiscussion = new Codicon('comment-discussion', { fontCharacter: '\\eac7' }); static compareChanges = new Codicon('compare-changes', { fontCharacter: '\\eafd' }); static creditCard = new Codicon('credit-card', { fontCharacter: '\\eac9' }); static dash = new Codicon('dash', { fontCharacter: '\\eacc' }); static dashboard = new Codicon('dashboard', { fontCharacter: '\\eacd' }); static database = new Codicon('database', { fontCharacter: '\\eace' }); static debugContinue = new Codicon('debug-continue', { fontCharacter: '\\eacf' }); static debugDisconnect = new Codicon('debug-disconnect', { fontCharacter: '\\ead0' }); static debugPause = new Codicon('debug-pause', { fontCharacter: '\\ead1' }); static debugRestart = new Codicon('debug-restart', { fontCharacter: '\\ead2' }); static debugStart = new Codicon('debug-start', { fontCharacter: '\\ead3' }); static debugStepInto = new Codicon('debug-step-into', { fontCharacter: '\\ead4' }); static debugStepOut = new Codicon('debug-step-out', { fontCharacter: '\\ead5' }); static debugStepOver = new Codicon('debug-step-over', { fontCharacter: '\\ead6' }); static debugStop = new Codicon('debug-stop', { fontCharacter: '\\ead7' }); static debug = new Codicon('debug', { fontCharacter: '\\ead8' }); static deviceCameraVideo = new Codicon('device-camera-video', { fontCharacter: '\\ead9' }); static deviceCamera = new Codicon('device-camera', { fontCharacter: '\\eada' }); static deviceMobile = new Codicon('device-mobile', { fontCharacter: '\\eadb' }); static diffAdded = new Codicon('diff-added', { fontCharacter: '\\eadc' }); static diffIgnored = new Codicon('diff-ignored', { fontCharacter: '\\eadd' }); static diffModified = new Codicon('diff-modified', { fontCharacter: '\\eade' }); static diffRemoved = new Codicon('diff-removed', { fontCharacter: '\\eadf' }); static diffRenamed = new Codicon('diff-renamed', { fontCharacter: '\\eae0' }); static diff = new Codicon('diff', { fontCharacter: '\\eae1' }); static discard = new Codicon('discard', { fontCharacter: '\\eae2' }); static editorLayout = new Codicon('editor-layout', { fontCharacter: '\\eae3' }); static emptyWindow = new Codicon('empty-window', { fontCharacter: '\\eae4' }); static exclude = new Codicon('exclude', { fontCharacter: '\\eae5' }); static extensions = new Codicon('extensions', { fontCharacter: '\\eae6' }); static eyeClosed = new Codicon('eye-closed', { fontCharacter: '\\eae7' }); static fileBinary = new Codicon('file-binary', { fontCharacter: '\\eae8' }); static fileCode = new Codicon('file-code', { fontCharacter: '\\eae9' }); static fileMedia = new Codicon('file-media', { fontCharacter: '\\eaea' }); static filePdf = new Codicon('file-pdf', { fontCharacter: '\\eaeb' }); static fileSubmodule = new Codicon('file-submodule', { fontCharacter: '\\eaec' }); static fileSymlinkDirectory = new Codicon('file-symlink-directory', { fontCharacter: '\\eaed' }); static fileSymlinkFile = new Codicon('file-symlink-file', { fontCharacter: '\\eaee' }); static fileZip = new Codicon('file-zip', { fontCharacter: '\\eaef' }); static files = new Codicon('files', { fontCharacter: '\\eaf0' }); static filter = new Codicon('filter', { fontCharacter: '\\eaf1' }); static flame = new Codicon('flame', { fontCharacter: '\\eaf2' }); static foldDown = new Codicon('fold-down', { fontCharacter: '\\eaf3' }); static foldUp = new Codicon('fold-up', { fontCharacter: '\\eaf4' }); static fold = new Codicon('fold', { fontCharacter: '\\eaf5' }); static folderActive = new Codicon('folder-active', { fontCharacter: '\\eaf6' }); static folderOpened = new Codicon('folder-opened', { fontCharacter: '\\eaf7' }); static gear = new Codicon('gear', { fontCharacter: '\\eaf8' }); static gift = new Codicon('gift', { fontCharacter: '\\eaf9' }); static gistSecret = new Codicon('gist-secret', { fontCharacter: '\\eafa' }); static gist = new Codicon('gist', { fontCharacter: '\\eafb' }); static gitCommit = new Codicon('git-commit', { fontCharacter: '\\eafc' }); static gitCompare = new Codicon('git-compare', { fontCharacter: '\\eafd' }); static gitMerge = new Codicon('git-merge', { fontCharacter: '\\eafe' }); static githubAction = new Codicon('github-action', { fontCharacter: '\\eaff' }); static githubAlt = new Codicon('github-alt', { fontCharacter: '\\eb00' }); static globe = new Codicon('globe', { fontCharacter: '\\eb01' }); static grabber = new Codicon('grabber', { fontCharacter: '\\eb02' }); static graph = new Codicon('graph', { fontCharacter: '\\eb03' }); static gripper = new Codicon('gripper', { fontCharacter: '\\eb04' }); static heart = new Codicon('heart', { fontCharacter: '\\eb05' }); static home = new Codicon('home', { fontCharacter: '\\eb06' }); static horizontalRule = new Codicon('horizontal-rule', { fontCharacter: '\\eb07' }); static hubot = new Codicon('hubot', { fontCharacter: '\\eb08' }); static inbox = new Codicon('inbox', { fontCharacter: '\\eb09' }); static issueClosed = new Codicon('issue-closed', { fontCharacter: '\\eba4' }); static issueReopened = new Codicon('issue-reopened', { fontCharacter: '\\eb0b' }); static issues = new Codicon('issues', { fontCharacter: '\\eb0c' }); static italic = new Codicon('italic', { fontCharacter: '\\eb0d' }); static jersey = new Codicon('jersey', { fontCharacter: '\\eb0e' }); static json = new Codicon('json', { fontCharacter: '\\eb0f' }); static kebabVertical = new Codicon('kebab-vertical', { fontCharacter: '\\eb10' }); static key = new Codicon('key', { fontCharacter: '\\eb11' }); static law = new Codicon('law', { fontCharacter: '\\eb12' }); static lightbulbAutofix = new Codicon('lightbulb-autofix', { fontCharacter: '\\eb13' }); static linkExternal = new Codicon('link-external', { fontCharacter: '\\eb14' }); static link = new Codicon('link', { fontCharacter: '\\eb15' }); static listOrdered = new Codicon('list-ordered', { fontCharacter: '\\eb16' }); static listUnordered = new Codicon('list-unordered', { fontCharacter: '\\eb17' }); static liveShare = new Codicon('live-share', { fontCharacter: '\\eb18' }); static loading = new Codicon('loading', { fontCharacter: '\\eb19' }); static location = new Codicon('location', { fontCharacter: '\\eb1a' }); static mailRead = new Codicon('mail-read', { fontCharacter: '\\eb1b' }); static mail = new Codicon('mail', { fontCharacter: '\\eb1c' }); static markdown = new Codicon('markdown', { fontCharacter: '\\eb1d' }); static megaphone = new Codicon('megaphone', { fontCharacter: '\\eb1e' }); static mention = new Codicon('mention', { fontCharacter: '\\eb1f' }); static milestone = new Codicon('milestone', { fontCharacter: '\\eb20' }); static mortarBoard = new Codicon('mortar-board', { fontCharacter: '\\eb21' }); static move = new Codicon('move', { fontCharacter: '\\eb22' }); static multipleWindows = new Codicon('multiple-windows', { fontCharacter: '\\eb23' }); static mute = new Codicon('mute', { fontCharacter: '\\eb24' }); static noNewline = new Codicon('no-newline', { fontCharacter: '\\eb25' }); static note = new Codicon('note', { fontCharacter: '\\eb26' }); static octoface = new Codicon('octoface', { fontCharacter: '\\eb27' }); static openPreview = new Codicon('open-preview', { fontCharacter: '\\eb28' }); static package_ = new Codicon('package', { fontCharacter: '\\eb29' }); static paintcan = new Codicon('paintcan', { fontCharacter: '\\eb2a' }); static pin = new Codicon('pin', { fontCharacter: '\\eb2b' }); static play = new Codicon('play', { fontCharacter: '\\eb2c' }); static run = new Codicon('run', { fontCharacter: '\\eb2c' }); static plug = new Codicon('plug', { fontCharacter: '\\eb2d' }); static preserveCase = new Codicon('preserve-case', { fontCharacter: '\\eb2e' }); static preview = new Codicon('preview', { fontCharacter: '\\eb2f' }); static project = new Codicon('project', { fontCharacter: '\\eb30' }); static pulse = new Codicon('pulse', { fontCharacter: '\\eb31' }); static question = new Codicon('question', { fontCharacter: '\\eb32' }); static quote = new Codicon('quote', { fontCharacter: '\\eb33' }); static radioTower = new Codicon('radio-tower', { fontCharacter: '\\eb34' }); static reactions = new Codicon('reactions', { fontCharacter: '\\eb35' }); static references = new Codicon('references', { fontCharacter: '\\eb36' }); static refresh = new Codicon('refresh', { fontCharacter: '\\eb37' }); static regex = new Codicon('regex', { fontCharacter: '\\eb38' }); static remoteExplorer = new Codicon('remote-explorer', { fontCharacter: '\\eb39' }); static remote = new Codicon('remote', { fontCharacter: '\\eb3a' }); static remove = new Codicon('remove', { fontCharacter: '\\eb3b' }); static replaceAll = new Codicon('replace-all', { fontCharacter: '\\eb3c' }); static replace = new Codicon('replace', { fontCharacter: '\\eb3d' }); static repoClone = new Codicon('repo-clone', { fontCharacter: '\\eb3e' }); static repoForcePush = new Codicon('repo-force-push', { fontCharacter: '\\eb3f' }); static repoPull = new Codicon('repo-pull', { fontCharacter: '\\eb40' }); static repoPush = new Codicon('repo-push', { fontCharacter: '\\eb41' }); static report = new Codicon('report', { fontCharacter: '\\eb42' }); static requestChanges = new Codicon('request-changes', { fontCharacter: '\\eb43' }); static rocket = new Codicon('rocket', { fontCharacter: '\\eb44' }); static rootFolderOpened = new Codicon('root-folder-opened', { fontCharacter: '\\eb45' }); static rootFolder = new Codicon('root-folder', { fontCharacter: '\\eb46' }); static rss = new Codicon('rss', { fontCharacter: '\\eb47' }); static ruby = new Codicon('ruby', { fontCharacter: '\\eb48' }); static saveAll = new Codicon('save-all', { fontCharacter: '\\eb49' }); static saveAs = new Codicon('save-as', { fontCharacter: '\\eb4a' }); static save = new Codicon('save', { fontCharacter: '\\eb4b' }); static screenFull = new Codicon('screen-full', { fontCharacter: '\\eb4c' }); static screenNormal = new Codicon('screen-normal', { fontCharacter: '\\eb4d' }); static searchStop = new Codicon('search-stop', { fontCharacter: '\\eb4e' }); static server = new Codicon('server', { fontCharacter: '\\eb50' }); static settingsGear = new Codicon('settings-gear', { fontCharacter: '\\eb51' }); static settings = new Codicon('settings', { fontCharacter: '\\eb52' }); static shield = new Codicon('shield', { fontCharacter: '\\eb53' }); static smiley = new Codicon('smiley', { fontCharacter: '\\eb54' }); static sortPrecedence = new Codicon('sort-precedence', { fontCharacter: '\\eb55' }); static splitHorizontal = new Codicon('split-horizontal', { fontCharacter: '\\eb56' }); static splitVertical = new Codicon('split-vertical', { fontCharacter: '\\eb57' }); static squirrel = new Codicon('squirrel', { fontCharacter: '\\eb58' }); static starFull = new Codicon('star-full', { fontCharacter: '\\eb59' }); static starHalf = new Codicon('star-half', { fontCharacter: '\\eb5a' }); static symbolClass = new Codicon('symbol-class', { fontCharacter: '\\eb5b' }); static symbolColor = new Codicon('symbol-color', { fontCharacter: '\\eb5c' }); static symbolCustomColor = new Codicon('symbol-customcolor', { fontCharacter: '\\eb5c' }); static symbolConstant = new Codicon('symbol-constant', { fontCharacter: '\\eb5d' }); static symbolEnumMember = new Codicon('symbol-enum-member', { fontCharacter: '\\eb5e' }); static symbolField = new Codicon('symbol-field', { fontCharacter: '\\eb5f' }); static symbolFile = new Codicon('symbol-file', { fontCharacter: '\\eb60' }); static symbolInterface = new Codicon('symbol-interface', { fontCharacter: '\\eb61' }); static symbolKeyword = new Codicon('symbol-keyword', { fontCharacter: '\\eb62' }); static symbolMisc = new Codicon('symbol-misc', { fontCharacter: '\\eb63' }); static symbolOperator = new Codicon('symbol-operator', { fontCharacter: '\\eb64' }); static symbolProperty = new Codicon('symbol-property', { fontCharacter: '\\eb65' }); static wrench = new Codicon('wrench', { fontCharacter: '\\eb65' }); static wrenchSubaction = new Codicon('wrench-subaction', { fontCharacter: '\\eb65' }); static symbolSnippet = new Codicon('symbol-snippet', { fontCharacter: '\\eb66' }); static tasklist = new Codicon('tasklist', { fontCharacter: '\\eb67' }); static telescope = new Codicon('telescope', { fontCharacter: '\\eb68' }); static textSize = new Codicon('text-size', { fontCharacter: '\\eb69' }); static threeBars = new Codicon('three-bars', { fontCharacter: '\\eb6a' }); static thumbsdown = new Codicon('thumbsdown', { fontCharacter: '\\eb6b' }); static thumbsup = new Codicon('thumbsup', { fontCharacter: '\\eb6c' }); static tools = new Codicon('tools', { fontCharacter: '\\eb6d' }); static triangleDown = new Codicon('triangle-down', { fontCharacter: '\\eb6e' }); static triangleLeft = new Codicon('triangle-left', { fontCharacter: '\\eb6f' }); static triangleRight = new Codicon('triangle-right', { fontCharacter: '\\eb70' }); static triangleUp = new Codicon('triangle-up', { fontCharacter: '\\eb71' }); static twitter = new Codicon('twitter', { fontCharacter: '\\eb72' }); static unfold = new Codicon('unfold', { fontCharacter: '\\eb73' }); static unlock = new Codicon('unlock', { fontCharacter: '\\eb74' }); static unmute = new Codicon('unmute', { fontCharacter: '\\eb75' }); static unverified = new Codicon('unverified', { fontCharacter: '\\eb76' }); static verified = new Codicon('verified', { fontCharacter: '\\eb77' }); static versions = new Codicon('versions', { fontCharacter: '\\eb78' }); static vmActive = new Codicon('vm-active', { fontCharacter: '\\eb79' }); static vmOutline = new Codicon('vm-outline', { fontCharacter: '\\eb7a' }); static vmRunning = new Codicon('vm-running', { fontCharacter: '\\eb7b' }); static watch = new Codicon('watch', { fontCharacter: '\\eb7c' }); static whitespace = new Codicon('whitespace', { fontCharacter: '\\eb7d' }); static wholeWord = new Codicon('whole-word', { fontCharacter: '\\eb7e' }); static window = new Codicon('window', { fontCharacter: '\\eb7f' }); static wordWrap = new Codicon('word-wrap', { fontCharacter: '\\eb80' }); static zoomIn = new Codicon('zoom-in', { fontCharacter: '\\eb81' }); static zoomOut = new Codicon('zoom-out', { fontCharacter: '\\eb82' }); static listFilter = new Codicon('list-filter', { fontCharacter: '\\eb83' }); static listFlat = new Codicon('list-flat', { fontCharacter: '\\eb84' }); static listSelection = new Codicon('list-selection', { fontCharacter: '\\eb85' }); static selection = new Codicon('selection', { fontCharacter: '\\eb85' }); static listTree = new Codicon('list-tree', { fontCharacter: '\\eb86' }); static debugBreakpointFunctionUnverified = new Codicon('debug-breakpoint-function-unverified', { fontCharacter: '\\eb87' }); static debugBreakpointFunction = new Codicon('debug-breakpoint-function', { fontCharacter: '\\eb88' }); static debugBreakpointFunctionDisabled = new Codicon('debug-breakpoint-function-disabled', { fontCharacter: '\\eb88' }); static debugStackframeActive = new Codicon('debug-stackframe-active', { fontCharacter: '\\eb89' }); static circleSmallFilled = new Codicon('circle-small-filled', { fontCharacter: '\\eb8a' }); static debugStackframeDot = new Codicon('debug-stackframe-dot', Codicon.circleSmallFilled.definition); static debugStackframe = new Codicon('debug-stackframe', { fontCharacter: '\\eb8b' }); static debugStackframeFocused = new Codicon('debug-stackframe-focused', { fontCharacter: '\\eb8b' }); static debugBreakpointUnsupported = new Codicon('debug-breakpoint-unsupported', { fontCharacter: '\\eb8c' }); static symbolString = new Codicon('symbol-string', { fontCharacter: '\\eb8d' }); static debugReverseContinue = new Codicon('debug-reverse-continue', { fontCharacter: '\\eb8e' }); static debugStepBack = new Codicon('debug-step-back', { fontCharacter: '\\eb8f' }); static debugRestartFrame = new Codicon('debug-restart-frame', { fontCharacter: '\\eb90' }); static callIncoming = new Codicon('call-incoming', { fontCharacter: '\\eb92' }); static callOutgoing = new Codicon('call-outgoing', { fontCharacter: '\\eb93' }); static menu = new Codicon('menu', { fontCharacter: '\\eb94' }); static expandAll = new Codicon('expand-all', { fontCharacter: '\\eb95' }); static feedback = new Codicon('feedback', { fontCharacter: '\\eb96' }); static groupByRefType = new Codicon('group-by-ref-type', { fontCharacter: '\\eb97' }); static ungroupByRefType = new Codicon('ungroup-by-ref-type', { fontCharacter: '\\eb98' }); static account = new Codicon('account', { fontCharacter: '\\eb99' }); static bellDot = new Codicon('bell-dot', { fontCharacter: '\\eb9a' }); static debugConsole = new Codicon('debug-console', { fontCharacter: '\\eb9b' }); static library = new Codicon('library', { fontCharacter: '\\eb9c' }); static output = new Codicon('output', { fontCharacter: '\\eb9d' }); static runAll = new Codicon('run-all', { fontCharacter: '\\eb9e' }); static syncIgnored = new Codicon('sync-ignored', { fontCharacter: '\\eb9f' }); static pinned = new Codicon('pinned', { fontCharacter: '\\eba0' }); static githubInverted = new Codicon('github-inverted', { fontCharacter: '\\eba1' }); static debugAlt = new Codicon('debug-alt', { fontCharacter: '\\eb91' }); static serverProcess = new Codicon('server-process', { fontCharacter: '\\eba2' }); static serverEnvironment = new Codicon('server-environment', { fontCharacter: '\\eba3' }); static pass = new Codicon('pass', { fontCharacter: '\\eba4' }); static stopCircle = new Codicon('stop-circle', { fontCharacter: '\\eba5' }); static playCircle = new Codicon('play-circle', { fontCharacter: '\\eba6' }); static record = new Codicon('record', { fontCharacter: '\\eba7' }); static debugAltSmall = new Codicon('debug-alt-small', { fontCharacter: '\\eba8' }); static vmConnect = new Codicon('vm-connect', { fontCharacter: '\\eba9' }); static cloud = new Codicon('cloud', { fontCharacter: '\\ebaa' }); static merge = new Codicon('merge', { fontCharacter: '\\ebab' }); static exportIcon = new Codicon('export', { fontCharacter: '\\ebac' }); static graphLeft = new Codicon('graph-left', { fontCharacter: '\\ebad' }); static magnet = new Codicon('magnet', { fontCharacter: '\\ebae' }); static notebook = new Codicon('notebook', { fontCharacter: '\\ebaf' }); static redo = new Codicon('redo', { fontCharacter: '\\ebb0' }); static checkAll = new Codicon('check-all', { fontCharacter: '\\ebb1' }); static pinnedDirty = new Codicon('pinned-dirty', { fontCharacter: '\\ebb2' }); static passFilled = new Codicon('pass-filled', { fontCharacter: '\\ebb3' }); static circleLargeFilled = new Codicon('circle-large-filled', { fontCharacter: '\\ebb4' }); static circleLarge = new Codicon('circle-large', { fontCharacter: '\\ebb5' }); static circleLargeOutline = new Codicon('circle-large-outline', Codicon.circleLarge.definition); static combine = new Codicon('combine', { fontCharacter: '\\ebb6' }); static gather = new Codicon('gather', { fontCharacter: '\\ebb6' }); static table = new Codicon('table', { fontCharacter: '\\ebb7' }); static variableGroup = new Codicon('variable-group', { fontCharacter: '\\ebb8' }); static typeHierarchy = new Codicon('type-hierarchy', { fontCharacter: '\\ebb9' }); static typeHierarchySub = new Codicon('type-hierarchy-sub', { fontCharacter: '\\ebba' }); static typeHierarchySuper = new Codicon('type-hierarchy-super', { fontCharacter: '\\ebbb' }); static gitPullRequestCreate = new Codicon('git-pull-request-create', { fontCharacter: '\\ebbc' }); static runAbove = new Codicon('run-above', { fontCharacter: '\\ebbd' }); static runBelow = new Codicon('run-below', { fontCharacter: '\\ebbe' }); static notebookTemplate = new Codicon('notebook-template', { fontCharacter: '\\ebbf' }); static debugRerun = new Codicon('debug-rerun', { fontCharacter: '\\ebc0' }); static workspaceTrusted = new Codicon('workspace-trusted', { fontCharacter: '\\ebc1' }); static workspaceUntrusted = new Codicon('workspace-untrusted', { fontCharacter: '\\ebc2' }); static workspaceUnspecified = new Codicon('workspace-unspecified', { fontCharacter: '\\ebc3' }); static terminalCmd = new Codicon('terminal-cmd', { fontCharacter: '\\ebc4' }); static terminalDebian = new Codicon('terminal-debian', { fontCharacter: '\\ebc5' }); static terminalLinux = new Codicon('terminal-linux', { fontCharacter: '\\ebc6' }); static terminalPowershell = new Codicon('terminal-powershell', { fontCharacter: '\\ebc7' }); static terminalTmux = new Codicon('terminal-tmux', { fontCharacter: '\\ebc8' }); static terminalUbuntu = new Codicon('terminal-ubuntu', { fontCharacter: '\\ebc9' }); static terminalBash = new Codicon('terminal-bash', { fontCharacter: '\\ebca' }); static arrowSwap = new Codicon('arrow-swap', { fontCharacter: '\\ebcb' }); static copy = new Codicon('copy', { fontCharacter: '\\ebcc' }); static personAdd = new Codicon('person-add', { fontCharacter: '\\ebcd' }); static filterFilled = new Codicon('filter-filled', { fontCharacter: '\\ebce' }); static wand = new Codicon('wand', { fontCharacter: '\\ebcf' }); static debugLineByLine = new Codicon('debug-line-by-line', { fontCharacter: '\\ebd0' }); static inspect = new Codicon('inspect', { fontCharacter: '\\ebd1' }); static layers = new Codicon('layers', { fontCharacter: '\\ebd2' }); static layersDot = new Codicon('layers-dot', { fontCharacter: '\\ebd3' }); static layersActive = new Codicon('layers-active', { fontCharacter: '\\ebd4' }); static compass = new Codicon('compass', { fontCharacter: '\\ebd5' }); static compassDot = new Codicon('compass-dot', { fontCharacter: '\\ebd6' }); static compassActive = new Codicon('compass-active', { fontCharacter: '\\ebd7' }); static azure = new Codicon('azure', { fontCharacter: '\\ebd8' }); static issueDraft = new Codicon('issue-draft', { fontCharacter: '\\ebd9' }); static gitPullRequestClosed = new Codicon('git-pull-request-closed', { fontCharacter: '\\ebda' }); static gitPullRequestDraft = new Codicon('git-pull-request-draft', { fontCharacter: '\\ebdb' }); static debugAll = new Codicon('debug-all', { fontCharacter: '\\ebdc' }); static debugCoverage = new Codicon('debug-coverage', { fontCharacter: '\\ebdd' }); static runErrors = new Codicon('run-errors', { fontCharacter: '\\ebde' }); static folderLibrary = new Codicon('folder-library', { fontCharacter: '\\ebdf' }); static debugContinueSmall = new Codicon('debug-continue-small', { fontCharacter: '\\ebe0' }); static beakerStop = new Codicon('beaker-stop', { fontCharacter: '\\ebe1' }); static graphLine = new Codicon('graph-line', { fontCharacter: '\\ebe2' }); static graphScatter = new Codicon('graph-scatter', { fontCharacter: '\\ebe3' }); static pieChart = new Codicon('pie-chart', { fontCharacter: '\\ebe4' }); static bracket = new Codicon('bracket', Codicon.json.definition); static bracketDot = new Codicon('bracket-dot', { fontCharacter: '\\ebe5' }); static bracketError = new Codicon('bracket-error', { fontCharacter: '\\ebe6' }); static lockSmall = new Codicon('lock-small', { fontCharacter: '\\ebe7' }); static azureDevops = new Codicon('azure-devops', { fontCharacter: '\\ebe8' }); static verifiedFilled = new Codicon('verified-filled', { fontCharacter: '\\ebe9' }); static newLine = new Codicon('newline', { fontCharacter: '\\ebea' }); static layout = new Codicon('layout', { fontCharacter: '\\ebeb' }); static layoutActivitybarLeft = new Codicon('layout-activitybar-left', { fontCharacter: '\\ebec' }); static layoutActivitybarRight = new Codicon('layout-activitybar-right', { fontCharacter: '\\ebed' }); static layoutPanelLeft = new Codicon('layout-panel-left', { fontCharacter: '\\ebee' }); static layoutPanelCenter = new Codicon('layout-panel-center', { fontCharacter: '\\ebef' }); static layoutPanelJustify = new Codicon('layout-panel-justify', { fontCharacter: '\\ebf0' }); static layoutPanelRight = new Codicon('layout-panel-right', { fontCharacter: '\\ebf1' }); static layoutPanel = new Codicon('layout-panel', { fontCharacter: '\\ebf2' }); static layoutSidebarLeft = new Codicon('layout-sidebar-left', { fontCharacter: '\\ebf3' }); static layoutSidebarRight = new Codicon('layout-sidebar-right', { fontCharacter: '\\ebf4' }); static layoutStatusbar = new Codicon('layout-statusbar', { fontCharacter: '\\ebf5' }); static layoutMenubar = new Codicon('layout-menubar', { fontCharacter: '\\ebf6' }); static layoutCentered = new Codicon('layout-centered', { fontCharacter: '\\ebf7' }); static layoutSidebarRightOff = new Codicon('layout-sidebar-right-off', { fontCharacter: '\\ec00' }); static layoutPanelOff = new Codicon('layout-panel-off', { fontCharacter: '\\ec01' }); static layoutSidebarLeftOff = new Codicon('layout-sidebar-left-off', { fontCharacter: '\\ec02' }); static target = new Codicon('target', { fontCharacter: '\\ebf8' }); static indent = new Codicon('indent', { fontCharacter: '\\ebf9' }); static recordSmall = new Codicon('record-small', { fontCharacter: '\\ebfa' }); static errorSmall = new Codicon('error-small', { fontCharacter: '\\ebfb' }); static arrowCircleDown = new Codicon('arrow-circle-down', { fontCharacter: '\\ebfc' }); static arrowCircleLeft = new Codicon('arrow-circle-left', { fontCharacter: '\\ebfd' }); static arrowCircleRight = new Codicon('arrow-circle-right', { fontCharacter: '\\ebfe' }); static arrowCircleUp = new Codicon('arrow-circle-up', { fontCharacter: '\\ebff' }); static heartFilled = new Codicon('heart-filled', { fontCharacter: '\\ec04' }); static map = new Codicon('map', { fontCharacter: '\\ec05' }); static mapFilled = new Codicon('map-filled', { fontCharacter: '\\ec06' }); static circleSmall = new Codicon('circle-small', { fontCharacter: '\\ec07' }); static bellSlash = new Codicon('bell-slash', { fontCharacter: '\\ec08' }); static bellSlashDot = new Codicon('bell-slash-dot', { fontCharacter: '\\ec09' }); static commentUnresolved = new Codicon('comment-unresolved', { fontCharacter: '\\ec0a' }); static gitPullRequestGoToChanges = new Codicon('git-pull-request-go-to-changes', { fontCharacter: '\\ec0b' }); static gitPullRequestNewChanges = new Codicon('git-pull-request-new-changes', { fontCharacter: '\\ec0c' }); static searchFuzzy = new Codicon('search-fuzzy', { fontCharacter: '\\ec0d' }); static commentDraft = new Codicon('comment-draft', { fontCharacter: '\\ec0e' }); // derived icons, that could become separate icons static dialogError = new Codicon('dialog-error', Codicon.error.definition); static dialogWarning = new Codicon('dialog-warning', Codicon.warning.definition); static dialogInfo = new Codicon('dialog-info', Codicon.info.definition); static dialogClose = new Codicon('dialog-close', Codicon.close.definition); static treeItemExpanded = new Codicon('tree-item-expanded', Codicon.chevronDown.definition); // collapsed is done with rotation static treeFilterOnTypeOn = new Codicon('tree-filter-on-type-on', Codicon.listFilter.definition); static treeFilterOnTypeOff = new Codicon('tree-filter-on-type-off', Codicon.listSelection.definition); static treeFilterClear = new Codicon('tree-filter-clear', Codicon.close.definition); static treeItemLoading = new Codicon('tree-item-loading', Codicon.loading.definition); static menuSelection = new Codicon('menu-selection', Codicon.check.definition); static menuSubmenu = new Codicon('menu-submenu', Codicon.chevronRight.definition); static menuBarMore = new Codicon('menubar-more', Codicon.more.definition); static scrollbarButtonLeft = new Codicon('scrollbar-button-left', Codicon.triangleLeft.definition); static scrollbarButtonRight = new Codicon('scrollbar-button-right', Codicon.triangleRight.definition); static scrollbarButtonUp = new Codicon('scrollbar-button-up', Codicon.triangleUp.definition); static scrollbarButtonDown = new Codicon('scrollbar-button-down', Codicon.triangleDown.definition); static toolBarMore = new Codicon('toolbar-more', Codicon.more.definition); static quickInputBack = new Codicon('quick-input-back', Codicon.arrowLeft.definition); } export var CSSIcon; (function (CSSIcon) { CSSIcon.iconNameSegment = '[A-Za-z0-9]+'; CSSIcon.iconNameExpression = '[A-Za-z0-9-]+'; CSSIcon.iconModifierExpression = '~[A-Za-z]+'; CSSIcon.iconNameCharacter = '[A-Za-z0-9~-]'; const cssIconIdRegex = new RegExp(`^(${CSSIcon.iconNameExpression})(${CSSIcon.iconModifierExpression})?$`); function asClassNameArray(icon) { if (icon instanceof Codicon) { return ['codicon', 'codicon-' + icon.id]; } const match = cssIconIdRegex.exec(icon.id); if (!match) { return asClassNameArray(Codicon.error); } const [, id, modifier] = match; const classNames = ['codicon', 'codicon-' + id]; if (modifier) { classNames.push('codicon-modifier-' + modifier.substring(1)); } return classNames; } CSSIcon.asClassNameArray = asClassNameArray; function asClassName(icon) { return asClassNameArray(icon).join(' '); } CSSIcon.asClassName = asClassName; function asCSSSelector(icon) { return '.' + asClassNameArray(icon).join('.'); } CSSIcon.asCSSSelector = asCSSSelector; })(CSSIcon || (CSSIcon = {}));