src/vs/base/common/functional.ts

32 LOC · 27 covered · 5 uncovered · 7 ranges · 20961 concepts · 4 introducers · 12741 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/arrays.ts · 949 LOCcommon/arrays.tssrc/vs/base/common/arraysFind.ts · 226 LOCcommon/arraysFind.tssrc/vs/base/common/assert.ts · 91 LOCcommon/assert.tssrc/vs/base/common/charCode.ts · 450 LOCcommon/charCode.tssrc/vs/base/common/collections.ts · 176 LOCcommon/collections.tssrc/vs/base/common/errors.ts · 357 LOCcommon/errors.tssrc/vs/base/common/iterator.ts · 194 LOCcommon/iterator.tssrc/vs/base/common/lifecycle.ts · 974 LOCcommon/lifecycle.tssrc/vs/base/common/map.ts · 1016 LOCcommon/map.tssrc/vs/base/common/marshallingIds.ts · 33 LOCcommon/marshallingIds.tssrc/vs/base/common/path.ts · 1589 LOCcommon/path.tssrc/vs/base/common/platform.ts · 281 LOCcommon/platform.tssrc/vs/base/common/process.ts · 76 LOCcommon/process.tssrc/vs/base/common/types.ts · 410 LOCcommon/types.tssrc/vs/base/common/uri.ts · 754 LOCcommon/uri.tssrc/vs/base/node/crypto.ts · 39 LOCnode/crypto.tssrc/vs/base/test/common/utils.ts · 107 LOCcommon/utils.tssrc/vs/nls.ts · 244 LOCvs/nls.tspromptsService.test|title=PromptsService findAgentSkills should return empty array when no skills found|occurrence=1 · 0 introduced LOCpromptsService.test|titl…agentService.ts ×2 · 4 introduced LOCagentService.ts ×2agentService.ts ×6 · 12 introduced LOCagentService.ts ×6chatImageExtraction.ts ×2 · 9 introduced LOCchatImageExtraction.ts ×…commands → slash completion (end-to-end) a skill wins over a same-named command (no duplicate completion)|occurrence=1 · 0 introduced LOCcommands → slash complet…<name> completion (pre-session)|occurrence=1 · 0 introduced LOC<name> completion (pre-s…commands → slash completion (end-to-end) the command survives the live SDK filter once a session materializes|occurrence=1 · 0 introduced LOCcommands → slash complet…commands → slash completion (end-to-end) a command the live SDK did not load is dropped post-materialize|occurrence=1 · 0 introduced LOCcommands → slash complet…promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem object config value|occurrence=1 · 0 introduced LOCpromptFilesLocator.test|…commands are surfaced too (pre-session)|occurrence=1 · 0 introduced LOCcommands are surfaced to…promptFilesLocator.test|title=PromptFilesLocator skills findAgentSkills returns empty array when no skills exist|occurrence=1, promptFilesLocator.test|title=PromptFilesLocator skills findAgentSkills returns empty array when skill folder does not exist|occurrence=1 · 0 introduced LOCpromptFilesLocator.test|…promptFilesLocator.ts ×1 · 26 introduced LOCpromptFilesLocator.ts ×1config.ts ×1 · 2 introduced LOCconfig.ts ×1promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem no config value|occurrence=1, promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem null config value|occurrence=1, +1 · 0 introduced LOCpromptFilesLocator.test|…diskFileSystemProvider.ts ×11 · 79 introduced LOCdiskFileSystemProvider.t…mockFilesystem.ts ×2 · 6 introduced LOCmockFilesystem.ts ×2extensionDownloader.ts ×10 · 52 introduced LOCextensionDownloader.ts ×…mockAgent.ts ×1 · 4 introduced LOCmockAgent.ts ×1fileService.ts ×2 · 12 introduced LOCfileService.ts ×2fileService.ts ×7 · 30 introduced LOCfileService.ts ×7mime.ts ×1 · 4 introduced LOCmime.ts ×1sessionDataService.ts ×3 · 11 introduced LOCsessionDataService.ts ×3event.test|title=Event utils EventMultiplexer cold start works|occurrence=1 · 0 introduced LOCevent.test|title=Event u…event.test|title=Event utils EventMultiplexer mutliplexer event dispose works|occurrence=1 · 0 introduced LOCevent.test|title=Event u…event.test|title=Event utils EventMultiplexer works|occurrence=1, event.test|title=Event utils EventMultiplexer hot start works|occurrence=1 · 0 introduced LOCevent.test|title=Event u…ipc.ts ×8 · 76 introduced LOCipc.ts ×8ipc.ts ×2 · 14 introduced LOCipc.ts ×2ipc.ts ×2 · 4 introduced LOCipc.ts ×2ipc.ts ×11 · 33 introduced LOCipc.ts ×11ipc.ts ×3 · 7 introduced LOCipc.ts ×3ipc.ts ×8 · 36 introduced LOCipc.ts ×8crypto.ts ×1 · 2 introduced LOCcrypto.ts ×1crypto.ts ×3 · 38 introduced LOCcrypto.ts ×3event.ts ×2 · 5 introduced LOCevent.ts ×2event.ts ×1 · 2 introduced LOCevent.ts ×1event.ts ×1 · 2 introduced LOCevent.ts ×1event.ts ×9 · 32 introduced LOCevent.ts ×9lifecycle.test|title=Reference Collection simple|occurrence=1 · 0 introduced LOClifecycle.test|title=Ref…lifecycle.ts ×1 · 4 introduced LOClifecycle.ts ×1functional.ts ×3 · 10 introduced LOCfunctional.ts ×3lifecycle.ts ×2 · 15 introduced LOClifecycle.ts ×2functional.ts ×2 · 6 introduced LOCfunctional.ts ×2event.ts ×93 · 864 introduced LOCevent.ts ×93objects.ts ×3 · 29 introduced LOCobjects.ts ×3objects.ts ×1 · 4 introduced LOCobjects.ts ×1mock.test|title=mockService mockObject immutability of the overrides object|occurrence=1 · 0 introduced LOCmock.test|title=mockServ…arraysFind.ts ×2 · 11 introduced LOCarraysFind.ts ×2arraysFind.ts ×2 · 11 introduced LOCarraysFind.ts ×2iterator.ts ×2 · 8 introduced LOCiterator.ts ×2uuid.test|title=UUID generation|occurrence=1 · 0 introduced LOCuuid.test|title=UUID gen…objects.ts ×1 · 6 introduced LOCobjects.ts ×1linkedList.ts ×13 · 44 introduced LOClinkedList.ts ×13objects.ts ×13 · 65 introduced LOCobjects.ts ×13uuid.ts ×3 · 25 introduced LOCuuid.ts ×3testUtils.ts ×2 · 19 introduced LOCtestUtils.ts ×2arrays.ts ×1 · 2 introduced LOCarrays.ts ×1iterator.ts ×1 · 2 introduced LOCiterator.ts ×1map.ts ×97 · 3334 introduced LOCmap.ts ×97ipc.test|title=Base IPC one to many server gets pings from all clients (broadcast channel)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/parts/ipc/test/common/ipc.test|title=Base IPC one to many server gets pings from all clients (broadcast channel)|occurrence=1ipc.test|title=Base IPC …ipc.test|title=Base IPC one to one call success|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/parts/ipc/test/common/ipc.test|title=Base IPC one to one call success|occurrence=1ipc.test|title=Base IPC …ipc.test|title=Base IPC one to one request rejects (and cleans up) when serialization throws on the deferred path|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/parts/ipc/test/common/ipc.test|title=Base IPC one to one request rejects (and cleans up) when serialization throws on the deferred path|occurrence=1ipc.test|title=Base IPC …arrays.test|title=Arrays findLastMaxBy|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/arrays.test|title=Arrays findLastMaxBy|occurrence=1arrays.test|title=Arrays…arrays.test|title=Arrays findMaxBy|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/arrays.test|title=Arrays findMaxBy|occurrence=1arrays.test|title=Arrays…event.test|title=Event utils EventMultiplexer cold start works|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/event.test|title=Event utils EventMultiplexer cold start works|occurrence=1event.test|title=Event u…event.test|title=Event utils EventMultiplexer hot start works|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/event.test|title=Event utils EventMultiplexer hot start works|occurrence=1event.test|title=Event u…event.test|title=Event utils EventMultiplexer mutliplexer event dispose works|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/event.test|title=Event utils EventMultiplexer mutliplexer event dispose works|occurrence=1event.test|title=Event u…event.test|title=Event utils EventMultiplexer works|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/event.test|title=Event utils EventMultiplexer works|occurrence=1event.test|title=Event u…iterator.test|title=Iterable wrap|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/iterator.test|title=Iterable wrap|occurrence=1iterator.test|title=Iter…lifecycle.test|title=Reference Collection simple|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Reference Collection simple|occurrence=1lifecycle.test|title=Ref…objects.test|title=Objects getCaseInsensitive|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/objects.test|title=Objects getCaseInsensitive|occurrence=1objects.test|title=Objec…objects.test|title=Objects stableStringify|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/objects.test|title=Objects stableStringify|occurrence=1objects.test|title=Objec…objects.test|title=mapValues|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/objects.test|title=mapValues|occurrence=1objects.test|title=mapVa…uuid.test|title=UUID generation|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uuid.test|title=UUID generation|occurrence=1uuid.test|title=UUID gen…crypto.test|title=Crypto checksum mismatch rejects|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/node/crypto.test|title=Crypto checksum mismatch rejects|occurrence=1crypto.test|title=Crypto…crypto.test|title=Crypto checksum|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/node/crypto.test|title=Crypto checksum|occurrence=1crypto.test|title=Crypto…agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: cache dir includes sdkTarget so Universal launches stay separate|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: cache dir includes sdkTarget so Universal launches stay separate|occurrence=1agentSdkDownloader.test|…agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: cache miss → downloads, extracts, writes sentinel|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: cache miss → downloads, extracts, writes sentinel|occurrence=1agentSdkDownloader.test|…agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: concurrent calls in same process share one download|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: concurrent calls in same process share one download|occurrence=1agentSdkDownloader.test|…agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: reports monotonic download progress ending at totalBytes|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: reports monotonic download progress ending at totalBytes|occurrence=1agentSdkDownloader.test|…agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: substitutes {sdkTarget} into urlTemplate|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSdkDownloader.test|title=AgentSdkDownloader loadSdkRoot: substitutes {sdkTarget} into urlTemplate|occurrence=1agentSdkDownloader.test|…agentService.test|title=AgentService (node dispatcher) user-message attachment rewriting snapshots Resource attachments by reading the original file and rewriting to a local snapshot|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) user-message attachment rewriting snapshots Resource attachments by reading the original file and rewriting to a local snapshot|occurrence=1agentService.test|title=…commands → slash completion (end-to-end) a command the live SDK did not load is dropped post-materialize|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/customizations/claudeCommandSlashCompletion.test|title=Claude .claude/commands → slash completion (end-to-end) a command the live SDK did not load is dropped post-materialize|occurrence=1commands → slash complet…<name> completion (pre-session)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/customizations/claudeCommandSlashCompletion.test|title=Claude .claude/commands → slash completion (end-to-end) a flat .claude/commands/*.md file becomes a /<name> completion (pre-session)|occurrence=1<name> completion (pre-s…commands → slash completion (end-to-end) a skill wins over a same-named command (no duplicate completion)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/customizations/claudeCommandSlashCompletion.test|title=Claude .claude/commands → slash completion (end-to-end) a skill wins over a same-named command (no duplicate completion)|occurrence=1commands → slash complet…commands → slash completion (end-to-end) the command survives the live SDK filter once a session materializes|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/customizations/claudeCommandSlashCompletion.test|title=Claude .claude/commands → slash completion (end-to-end) the command survives the live SDK filter once a session materializes|occurrence=1commands → slash complet…commands are surfaced too (pre-session)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/customizations/claudeCommandSlashCompletion.test|title=Claude .claude/commands → slash completion (end-to-end) user-scope .claude/commands are surfaced too (pre-session)|occurrence=1commands are surfaced to…sessionDataService.test|title=SessionDataService — openDatabase ref-counting multiple references share the same database|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sessionDataService.test|title=SessionDataService — openDatabase ref-counting multiple references share the same database|occurrence=1sessionDataService.test|…extensionDownloader.test|title=ExtensionDownloader Tests download completes successfully if verification fails to execute|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/node/extensionDownloader.test|title=ExtensionDownloader Tests download completes successfully if verification fails to execute|occurrence=1extensionDownloader.test…extensionDownloader.test|title=ExtensionDownloader Tests download completes successfully if verification fails|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/node/extensionDownloader.test|title=ExtensionDownloader Tests download completes successfully if verification fails|occurrence=1extensionDownloader.test…extensionDownloader.test|title=ExtensionDownloader Tests download completes successfully if verification is disabled because the module is not loaded|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/node/extensionDownloader.test|title=ExtensionDownloader Tests download completes successfully if verification is disabled because the module is not loaded|occurrence=1extensionDownloader.test…extensionDownloader.test|title=ExtensionDownloader Tests download completes successfully if verification succeeds|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/node/extensionDownloader.test|title=ExtensionDownloader Tests download completes successfully if verification succeeds|occurrence=1extensionDownloader.test…chatImageExtraction.test|title=extractImagesFromToolInvocationMessages skips non-image URIs|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatImageExtraction.test|title=extractImagesFromToolInvocationMessages skips non-image URIs|occurrence=1chatImageExtraction.test…promptsService.test|title=PromptsService findAgentSkills should return empty array when no skills found|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test|title=PromptsService findAgentSkills should return empty array when no skills found|occurrence=1promptsService.test|titl…mock.test|title=mockService mockObject immutability of the overrides object|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/mock.test|title=mockService mockObject immutability of the overrides object|occurrence=1mock.test|title=mockServ…promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem array config value|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem array config value|occurrence=1promptFilesLocator.test|…promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem no config value|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem no config value|occurrence=1promptFilesLocator.test|…promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem null config value|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem null config value|occurrence=1promptFilesLocator.test|…promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem object config value|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem object config value|occurrence=1promptFilesLocator.test|…promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem string config value|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator empty workspace empty filesystem string config value|occurrence=1promptFilesLocator.test|…promptFilesLocator.test|title=PromptFilesLocator getHookSourceFolders excludes Claude paths|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator getHookSourceFolders excludes Claude paths|occurrence=1promptFilesLocator.test|…promptFilesLocator.test|title=PromptFilesLocator getHookSourceFolders returns source metadata for hook folders|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator getHookSourceFolders returns source metadata for hook folders|occurrence=1promptFilesLocator.test|…promptFilesLocator.test|title=PromptFilesLocator skills findAgentSkills returns empty array when no skills exist|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator skills findAgentSkills returns empty array when no skills exist|occurrence=1promptFilesLocator.test|…promptFilesLocator.test|title=PromptFilesLocator skills findAgentSkills returns empty array when skill folder does not exist|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/utils/promptFilesLocator.test|title=PromptFilesLocator skills findAgentSkills returns empty array when skill folder does not exist|occurrence=1promptFilesLocator.test|…Focused file · src/vs/base/common/functional.ts · 32 LOCcommon/functional.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 > /*--------------------------------------------------------------------------------------------- map.ts ×97
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 > /**
7 > * Given a function, returns a function that is only calling that function once.
8 > */
9 > export function createSingleCallFunction<T extends Function>(this: unknown, fn: T, fnDidRunCallback?: () => void): T {
10 > const _this = this; functional.ts ×2
11 > let didCall = false;
12 > let result: unknown;
13 >
14 > return function () {
15 > if (didCall) { functional.ts ×3
16 > return result; crypto.ts ×3
17 > }
19 > didCall = true;
20 > if (fnDidRunCallback) {
21 try {
22 result = fn.apply(_this, arguments);
23 } finally {
24 fnDidRunCallback();
25 }
26 > } else { functional.ts ×3
27 > result = fn.apply(_this, arguments);
28 > }
29 >
30 > return result;
31 > } as unknown as T;