src/vs/base/common/codiconsUtil.ts

28 LOC · 26 covered · 2 uncovered · 3 ranges · 6399 concepts · 2 introducers · 3220 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the filesrc/vs/base/common/codicons.ts · 66 LOCcommon/codicons.tssrc/vs/base/common/codiconsLibrary.ts · 758 LOCcommon/codiconsLibrary.t…src/vs/base/common/themables.ts · 117 LOCcommon/themables.tssrc/vs/platform/theme/common/iconRegistry.ts · 345 LOCcommon/iconRegistry.tspromptsServiceImpl.ts ×1 · 2 introduced LOCpromptsServiceImpl.ts ×1promptFilesLocator.ts ×13 · 64 introduced LOCpromptFilesLocator.ts ×1…promptsServiceImpl.ts ×15 · 213 introduced LOCpromptsServiceImpl.ts ×1…textModel.ts ×6 · 31 introduced LOCtextModel.ts ×6copilotAgent.ts ×4 · 32 introduced LOCcopilotAgent.ts ×4modelDecorations.test|title=Decorations and editing replace short non-collapsed dec edit.start < range.start && edit.end < range.end|occurrence=1 · 0 introduced LOCmodelDecorations.test|ti…modelDecorations.test|title=Decorations and editing replace short collapsed dec edit.end < range.start|occurrence=1 · 0 introduced LOCmodelDecorations.test|ti…modelDecorations.test|title=Decorations and editing delete non-collapsed dec edit.start > range.start && edit.start < range.end && edit.end > range.end|occurrence=1 · 0 introduced LOCmodelDecorations.test|ti…getBracketPairsInRange.test|title=Bracket Pair Colorizer - getBracketPairsInRange Basic 2|occurrence=1 · 0 introduced LOCgetBracketPairsInRange.t…model.test|title=Editor Model - Model setValue eventing|occurrence=1 · 0 introduced LOCmodel.test|title=Editor …sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery returns undefined when no files were discovered|occurrence=1 · 0 introduced LOCsessionCustomizationDisc…unicodeTextModelHighlighter.ts ×19 · 133 introduced LOCunicodeTextModelHighligh…extHostSCM.ts ×86 · 432 introduced LOCextHostSCM.ts ×86extHostTypeConverters.ts ×13 · 70 introduced LOCextHostTypeConverters.ts…extHostTypes.ts ×270 · 6339 introduced LOCextHostTypes.ts ×270agentPluginFormatDetection.test|title=AgentPlugin format detection discovers components without a manifest|occurrence=1 · 0 introduced LOCagentPluginFormatDetecti…chatModes.ts ×8 · 38 introduced LOCchatModes.ts ×8chatImageExtraction.ts ×2 · 18 introduced LOCchatImageExtraction.ts ×…progress.ts ×9 · 170 introduced LOCprogress.ts ×9chatImageExtraction.ts ×8 · 52 introduced LOCchatImageExtraction.ts ×…debugModel.ts ×5 · 39 introduced LOCdebugModel.ts ×5debugStorage.ts ×17 · 98 introduced LOCdebugStorage.ts ×17computeAutomaticInstructions.ts ×13 · 91 introduced LOCcomputeAutomaticInstruct…promptsServiceImpl.ts ×1 · 6 introduced LOCpromptsServiceImpl.ts ×1promptsServiceImpl.ts ×65 · 1045 introduced LOCpromptsServiceImpl.ts ×6…notebookCommon.ts ×26 · 977 introduced LOCnotebookCommon.ts ×26pluginParsers.ts ×1 · 3 introduced LOCpluginParsers.ts ×1chatViewModel.ts ×2 · 11 introduced LOCchatViewModel.ts ×2chatViewModel.ts ×80 · 450 introduced LOCchatViewModel.ts ×80constants.ts ×2 · 22 introduced LOCconstants.ts ×2mock.ts ×2 · 12 introduced LOCmock.ts ×2constants.ts ×1 · 12 introduced LOCconstants.ts ×1map.ts ×1 · 2 introduced LOCmap.ts ×1mockChatSessionsService.ts ×5 · 25 introduced LOCmockChatSessionsService.…debugModel.ts ×185 · 988 introduced LOCdebugModel.ts ×185promptsService.ts ×1 · 2 introduced LOCpromptsService.ts ×1agentPluginService.ts ×5 · 88 introduced LOCagentPluginService.ts ×5promptFilesLocator.ts ×31 · 261 introduced LOCpromptFilesLocator.ts ×3…mcpTypes.ts ×2 · 3 introduced LOCmcpTypes.ts ×2mcpTypes.ts ×31 · 4652 introduced LOCmcpTypes.ts ×31chatUri.ts ×1 · 3 introduced LOCchatUri.ts ×1enablement.ts ×17 · 71 introduced LOCenablement.ts ×17jsonContributionRegistry.ts ×1 · 2 introduced LOCjsonContributionRegistry…editorInput.ts ×28 · 265 introduced LOCeditorInput.ts ×28textfiles.ts ×5 · 575 introduced LOCtextfiles.ts ×5editor.ts ×3 · 541 introduced LOCeditor.ts ×3uri.ts ×1 · 2 introduced LOCuri.ts ×1userDataProfile.ts ×4 · 139 introduced LOCuserDataProfile.ts ×4ptyHostService.ts ×54 · 735 introduced LOCptyHostService.ts ×54sessionContextKeys.test|title=Session Context Keys publishes Git availability independently to scoped context key services|occurrence=1 · 0 introduced LOCsessionContextKeys.test|…unicodeTextModelHighlighter.ts ×8 · 65 introduced LOCunicodeTextModelHighligh…range.ts ×1 · 2 introduced LOCrange.ts ×1session.ts ×1 · 48 introduced LOCsession.ts ×1sessionContextKeys.ts ×2 · 293 introduced LOCsessionContextKeys.ts ×2iconRegistry.ts ×15 · 257 introduced LOCiconRegistry.ts ×15mock.ts ×1 · 2 introduced LOCmock.ts ×1confirmationTool.ts ×5 · 170 introduced LOCconfirmationTool.ts ×5terminalProfiles.ts ×19 · 142 introduced LOCterminalProfiles.ts ×19terminalProfiles.ts ×14 · 55 introduced LOCterminalProfiles.ts ×14languageModelToolsService.ts ×35 · 658 introduced LOClanguageModelToolsServic…session.ts ×1 · 2 introduced LOCsession.ts ×1constObservable.ts ×1 · 2 introduced LOCconstObservable.ts ×1constObservable.ts ×2 · 4 introduced LOCconstObservable.ts ×2chatVariableEntries.ts ×54 · 506 introduced LOCchatVariableEntries.ts ×…languages.ts ×27 · 2575 introduced LOClanguages.ts ×27iconLabels.ts ×3 · 70 introduced LOCiconLabels.ts ×3htmlContent.ts ×20 · 102 introduced LOChtmlContent.ts ×20session.ts ×10 · 681 introduced LOCsession.ts ×10iconLabels.ts ×1 · 6 introduced LOCiconLabels.ts ×1iconLabels.ts ×1 · 3 introduced LOCiconLabels.ts ×1iconLabels.ts ×1 · 6 introduced LOCiconLabels.ts ×1iconLabels.ts ×1 · 2 introduced LOCiconLabels.ts ×1iconLabels.ts ×6 · 47 introduced LOCiconLabels.ts ×6browserPermissions.ts ×3 · 6 introduced LOCbrowserPermissions.ts ×3browserPermissions.ts ×4 · 16 introduced LOCbrowserPermissions.ts ×4browserPermissions.ts ×2 · 16 introduced LOCbrowserPermissions.ts ×2browserPermissions.ts ×19 · 335 introduced LOCbrowserPermissions.ts ×1…terminalProfiles.ts ×3 · 15 introduced LOCterminalProfiles.ts ×3terminalProfiles.ts ×5 · 20 introduced LOCterminalProfiles.ts ×5themables.ts ×14 · 65 introduced LOCthemables.ts ×14codicons.ts ×2 · 846 introduced LOCcodicons.ts ×2iconLabels.test|title=Icon Labels Can get proper aria labels|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iconLabels.test|title=Icon Labels Can get proper aria labels|occurrence=1iconLabels.test|title=Ic…iconLabels.test|title=Icon Labels escapeIcons|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iconLabels.test|title=Icon Labels escapeIcons|occurrence=1iconLabels.test|title=Ic…iconLabels.test|title=Icon Labels markdownEscapeEscapedIcons|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iconLabels.test|title=Icon Labels markdownEscapeEscapedIcons|occurrence=1iconLabels.test|title=Ic…iconLabels.test|title=Icon Labels matchesFuzzyIconAware|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iconLabels.test|title=Icon Labels matchesFuzzyIconAware|occurrence=1iconLabels.test|title=Ic…iconLabels.test|title=Icon Labels stripIcons|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iconLabels.test|title=Icon Labels stripIcons|occurrence=1iconLabels.test|title=Ic…getBracketPairsInRange.test|title=Bracket Pair Colorizer - getBracketPairsInRange Basic 2|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/bracketPairColorizer/getBracketPairsInRange.test|title=Bracket Pair Colorizer - getBracketPairsInRange Basic 2|occurrence=1getBracketPairsInRange.t…model.test|title=Editor Model - Model setValue eventing|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/model.test|title=Editor Model - Model setValue eventing|occurrence=1model.test|title=Editor …modelDecorations.test|title=Decorations and editing delete non-collapsed dec edit.start > range.start && edit.start < range.end && edit.end > range.end|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/modelDecorations.test|title=Decorations and editing delete non-collapsed dec edit.start > range.start && edit.start < range.end && edit.end > range.end|occurrence=1modelDecorations.test|ti…modelDecorations.test|title=Decorations and editing replace short collapsed dec edit.end < range.start|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/modelDecorations.test|title=Decorations and editing replace short collapsed dec edit.end < range.start|occurrence=1modelDecorations.test|ti…modelDecorations.test|title=Decorations and editing replace short non-collapsed dec edit.start < range.start && edit.end < range.end|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/modelDecorations.test|title=Decorations and editing replace short non-collapsed dec edit.start < range.start && edit.end < range.end|occurrence=1modelDecorations.test|ti…modelInjectedText.test|title=Editor Model - Injected Text Events Basic|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/modelInjectedText.test|title=Editor Model - Injected Text Events Basic|occurrence=1modelInjectedText.test|t…unicodeTextModelHighlighter.test|title=UnicodeTextModelHighlighter computeUnicodeHighlights (#168068)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/unicodeTextModelHighlighter.test|title=UnicodeTextModelHighlighter computeUnicodeHighlights (#168068)|occurrence=1unicodeTextModelHighligh…copilotAgent.test|title=CopilotAgent createSession activeClient eager-claim setClientCustomizations publishes parsed agents in SessionCustomizationUpdated|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent createSession activeClient eager-claim setClientCustomizations publishes parsed agents in SessionCustomizationUpdated|occurrence=1copilotAgent.test|title=…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery returns undefined when no files were discovered|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery returns undefined when no files were discovered|occurrence=1sessionCustomizationDisc…browserPermissions.test|title=electronPermissionToCategories maps known permissions and media disambiguation|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/browserView/test/common/browserPermissions.test|title=electronPermissionToCategories maps known permissions and media disambiguation|occurrence=1browserPermissions.test|…browserPermissions.test|title=toOriginKey normalizes urls and tolerates bad input|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/browserView/test/common/browserPermissions.test|title=toOriginKey normalizes urls and tolerates bad input|occurrence=1browserPermissions.test|…terminalProfiles.test|title=terminalProfiles createProfileSchemaEnums should return an empty array when there are no profiles|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/terminal/test/common/terminalProfiles.test|title=terminalProfiles createProfileSchemaEnums should return an empty array when there are no profiles|occurrence=1terminalProfiles.test|ti…ptyHostService.test|title=PtyHostService restartPtyHost disposes listeners registered during pty host startup|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/terminal/test/node/ptyHostService.test|title=PtyHostService restartPtyHost disposes listeners registered during pty host startup|occurrence=1ptyHostService.test|titl…session.test|title=isActiveSessionStatus treats in-progress and needs-input sessions as active|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/sessions/services/sessions/test/common/session.test|title=isActiveSessionStatus treats in-progress and needs-input sessions as active|occurrence=1session.test|title=isAct…sessionContextKeys.test|title=Session Context Keys publishes Git availability independently to scoped context key services|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/sessions/services/sessions/test/common/sessionContextKeys.test|title=Session Context Keys publishes Git availability independently to scoped context key services|occurrence=1sessionContextKeys.test|…sessionContextKeys.test|title=setSessionContextKeys - side chat counts side chats as committed chats but still excludes tool-origin chats|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/sessions/services/sessions/test/common/sessionContextKeys.test|title=setSessionContextKeys - side chat counts side chats as committed chats but still excludes tool-origin chats|occurrence=1sessionContextKeys.test|…extHostSCM.test|title=ExtHostSCM disposed source controls are removed from extension bookkeeping|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostSCM.test|title=ExtHostSCM disposed source controls are removed from extension bookkeeping|occurrence=1extHostSCM.test|title=Ex…extHostTypeConverters.test|title=extHostTypeConverters ChatToolInvocationPart converts subagent data with its model name|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatToolInvocationPart converts subagent data with its model name|occurrence=1extHostTypeConverters.te…chatImageExtraction.test|title=extractImagesFromChatResponse uses default title when no matching request is found|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatImageExtraction.test|title=extractImagesFromChatResponse uses default title when no matching request is found|occurrence=1chatImageExtraction.test…chatModeService.test|title=ChatModeService should fire change event when custom modes are updated|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatModeService.test|title=ChatModeService should fire change event when custom modes are updated|occurrence=1chatModeService.test|tit…constants.test|title=ChatConfiguration defaults default permission configuration maps Allow All to the Agent Host value|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/constants.test|title=ChatConfiguration defaults default permission configuration maps Allow All to the Agent Host value|occurrence=1constants.test|title=Cha…constants.test|title=ChatConfiguration defaults default session resource follows the agent host default|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/constants.test|title=ChatConfiguration defaults default session resource follows the agent host default|occurrence=1constants.test|title=Cha…chatViewModel.test|title=ChatViewModel sticky scroll target ignores trailing pending items|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/model/chatViewModel.test|title=ChatViewModel sticky scroll target ignores trailing pending items|occurrence=1chatViewModel.test|title…agentPluginFormatDetection.test|title=AgentPlugin format detection discovers components without a manifest|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/plugins/agentPluginFormatDetection.test|title=AgentPlugin format detection discovers components without a manifest|occurrence=1agentPluginFormatDetecti…promptsService.test|title=PromptsService findInstructionFilesFor exposes onDidChangeAgentInstructions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test|title=PromptsService findInstructionFilesFor exposes onDidChangeAgentInstructions|occurrence=1promptsService.test|titl…unregisters|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test|title=PromptsService getPromptSlashCommands - skills should fire change event when provider registers/unregisters|occurrence=1unregisters|occurrence=1modifiedFilesConfirmationTool.test|title=ModifiedFilesConfirmationTool tool data exposes the expected schema|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/tools/builtinTools/modifiedFilesConfirmationTool.test|title=ModifiedFilesConfirmationTool tool data exposes the expected schema|occurrence=1modifiedFilesConfirmatio…debugModel.test|title=DebugModel DebugModel refreshTopOfCallstack resolves all returned promises when called multiple times|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/debug/test/common/debugModel.test|title=DebugModel DebugModel refreshTopOfCallstack resolves all returned promises when called multiple times|occurrence=1debugModel.test|title=De…mcpTypes.test|title=MCP Types McpServerDefinition.equals returns false when id differs|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpTypes.test|title=MCP Types McpServerDefinition.equals returns false when id differs|occurrence=1mcpTypes.test|title=MCP …terminalProfiles.test|title=Workbench - TerminalProfiles detectAvailableProfiles should detect shells via absolute paths|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/terminal/test/node/terminalProfiles.test|title=Workbench - TerminalProfiles detectAvailableProfiles should detect shells via absolute paths|occurrence=1terminalProfiles.test|ti…Focused file · src/vs/base/common/codiconsUtil.ts · 28 LOCcommon/codiconsUtil.ts

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 > /*--------------------------------------------------------------------------------------------- codicons.ts ×2
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 > import { ThemeIcon } from './themables.js';
6 > import { isString } from './types.js';
7 >
8 >
9 > const _codiconFontCharacters: { [id: string]: number } = Object.create(null);
10 >
11 > export function register(id: string, fontCharacter: number | string): ThemeIcon {
12 > if (isString(fontCharacter)) {
13 > const val = _codiconFontCharacters[fontCharacter];
14 > if (val === undefined) {
15 throw new Error(`${id} references an unknown codicon: ${fontCharacter}`);
16 }
17 > fontCharacter = val; codicons.ts ×2
18 > }
19 > _codiconFontCharacters[id] = fontCharacter;
20 > return { id };
21 > }
22 >
23 > /**
24 > * Only to be used by the iconRegistry.
25 > */
26 > export function getCodiconFontCharacters(): { [id: string]: number } {
27 > return _codiconFontCharacters; iconRegistry.ts ×15
28 > }