src/vs/platform/instantiation/common/descriptors.ts

21 LOC · 21 covered · 0 uncovered · 3 ranges · 7508 concepts · 2 introducers · 3886 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 filepromptsService.test|title=PromptsService findInstructionFilesFor does not have duplicates|occurrence=1 · 0 introduced LOCpromptsService.test|titl…promptsService.test|title=PromptsService findInstructionFilesFor finds correct instruction files|occurrence=1 · 0 introduced LOCpromptsService.test|titl…extensionPromptFileService.ts ×3 · 11 introduced LOCextensionPromptFileServi…promptsServiceImpl.ts ×6 · 16 introduced LOCpromptsServiceImpl.ts ×6chatService.test|title=ChatService troubleshoot skill via attachedContext proceeds when fileLogging.enabled is on|occurrence=1 · 0 introduced LOCchatService.test|title=C…chatServiceImpl.ts ×3 · 41 introduced LOCchatServiceImpl.ts ×3chatServiceImpl.ts ×1 · 19 introduced LOCchatServiceImpl.ts ×1copilotAgent.ts ×4 · 32 introduced LOCcopilotAgent.ts ×4textModel.ts ×1 · 6 introduced LOCtextModel.ts ×1model.test|title=Editor Model - Words issue #61296: VS code freezes when editing CSS file with emoji|occurrence=1 · 0 introduced LOCmodel.test|title=Editor …sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery returns undefined when no files were discovered|occurrence=1 · 0 introduced LOCsessionCustomizationDisc…extHostSCM.ts ×86 · 432 introduced LOCextHostSCM.ts ×86extHostChatAgents2.ts ×98 · 451 introduced LOCextHostChatAgents2.ts ×9…agentPluginFormatDetection.test|title=AgentPlugin format detection discovers components without a manifest|occurrence=1 · 0 introduced LOCagentPluginFormatDetecti…chatSessionStore.test|title=ChatSessionStore workspace migration migration is triggered when onDidEnterWorkspace fires|occurrence=1 · 0 introduced LOCchatSessionStore.test|ti…chatSessionStore.ts ×2 · 10 introduced LOCchatSessionStore.ts ×2colorThemeData.ts ×16 · 64 introduced LOCcolorThemeData.ts ×16mcpServerRequestHandler.ts ×1 · 2 introduced LOCmcpServerRequestHandler.…mcpServerRequestHandler.ts ×1 · 4 introduced LOCmcpServerRequestHandler.…mcpServerRequestHandler.ts ×2 · 9 introduced LOCmcpServerRequestHandler.…pluginParsers.ts ×1 · 3 introduced LOCpluginParsers.ts ×1resources.ts ×13 · 163 introduced LOCresources.ts ×13extensionsProfileScannerService.test|title=ExtensionsProfileScannerService write extensions located in different extensions folder does not has relative location|occurrence=1 · 0 introduced LOCextensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService write extensions located in the same extensions folder has relative location|occurrence=1 · 0 introduced LOCextensionsProfileScanner…extensionsProfileScannerService.ts ×2 · 6 introduced LOCextensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when uuid is different in identifier and manifest|occurrence=1 · 0 introduced LOCextensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when manifest is empty|occurrence=1, extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when manifest has empty lines and spaces|occurrence=1 · 0 introduced LOCextensionsProfileScanner…resources.ts ×7 · 45 introduced LOCresources.ts ×7json.ts ×1 · 2 introduced LOCjson.ts ×1map.ts ×1 · 3 introduced LOCmap.ts ×1uri.ts ×1 · 2 introduced LOCuri.ts ×1workspaceTrust.ts ×1 · 108 introduced LOCworkspaceTrust.ts ×1instantiationServiceMock.ts ×1 · 2 introduced LOCinstantiationServiceMock…aiRelatedInformationService.ts ×2 · 11 introduced LOCaiRelatedInformationServ…aiRelatedInformationService.ts ×4 · 85 introduced LOCaiRelatedInformationServ…stopwatch.ts ×1 · 2 introduced LOCstopwatch.ts ×1textResourceConfigurationService.ts ×8 · 56 introduced LOCtextResourceConfiguratio…model.ts ×1 · 38 introduced LOCmodel.ts ×1userActivityService.ts ×4 · 22 introduced LOCuserActivityService.ts ×…async.ts ×2 · 6 introduced LOCasync.ts ×2userActivityRegistry.ts ×3 · 96 introduced LOCuserActivityRegistry.ts …language.ts ×1 · 168 introduced LOClanguage.ts ×1extensions.ts ×1 · 35 introduced LOCextensions.ts ×1descriptors.ts ×1 · 4 introduced LOCdescriptors.ts ×1descriptors.ts ×2 · 17 introduced LOCdescriptors.ts ×2model.test|title=Editor Model - Words issue #61296: VS code freezes when editing CSS file with emoji|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/model.test|title=Editor Model - Words issue #61296: VS code freezes when editing CSS file with emoji|occurrence=1model.test|title=Editor …textModelWithTokens.test|title=TextModelWithTokens regression tests issue #63822: Wrong embedded language detected for empty lines|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/textModelWithTokens.test|title=TextModelWithTokens regression tests issue #63822: Wrong embedded language detected for empty lines|occurrence=1textModelWithTokens.test…textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes into given memory target without overrides|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes into given memory target without overrides|occurrence=1textResourceConfiguratio…textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes into given user target without overrides|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes into given user target without overrides|occurrence=1textResourceConfiguratio…textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes into given workspace folder target with overrides|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes into given workspace folder target with overrides|occurrence=1textResourceConfiguratio…textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes into given workspace target without overrides|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes into given workspace target without overrides|occurrence=1textResourceConfiguratio…textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes with target and without overrides when no language is defined|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/textResourceConfigurationService.test|title=TextResourceConfigurationService - Update updateValue writes with target and without overrides when no language is defined|occurrence=1textResourceConfiguratio…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…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService extension in old format is read and migrated|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionsProfileScannerService.test|title=ExtensionsProfileScannerService extension in old format is read and migrated|occurrence=1extensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when manifest has empty lines and spaces|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when manifest has empty lines and spaces|occurrence=1extensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when manifest is empty|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when manifest is empty|occurrence=1extensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when the relative location is empty|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when the relative location is empty|occurrence=1extensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when uuid is different in identifier and manifest|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionsProfileScannerService.test|title=ExtensionsProfileScannerService read extension when uuid is different in identifier and manifest|occurrence=1extensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService write extensions located in different extensions folder does not has relative location|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionsProfileScannerService.test|title=ExtensionsProfileScannerService write extensions located in different extensions folder does not has relative location|occurrence=1extensionsProfileScanner…extensionsProfileScannerService.test|title=ExtensionsProfileScannerService write extensions located in the same extensions folder has relative location|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionsProfileScannerService.test|title=ExtensionsProfileScannerService write extensions located in the same extensions folder has relative location|occurrence=1extensionsProfileScanner…extHostChatAgents2.test|title=ExtHostChatAgents2 reports anchor before resolving it|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostChatAgents2.test|title=ExtHostChatAgents2 reports anchor before resolving it|occurrence=1extHostChatAgents2.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…chatService.test|title=ChatService onWillSaveState persists session index synchronously so it survives reload|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService onWillSaveState persists session index synchronously so it survives reload|occurrence=1chatService.test|title=C…chatService.test|title=ChatService troubleshoot skill via attachedContext is blocked when fileLogging.enabled is off|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService troubleshoot skill via attachedContext is blocked when fileLogging.enabled is off|occurrence=1chatService.test|title=C…chatService.test|title=ChatService troubleshoot skill via attachedContext proceeds when fileLogging.enabled is on|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService troubleshoot skill via attachedContext proceeds when fileLogging.enabled is on|occurrence=1chatService.test|title=C…chatSessionStore.test|title=ChatSessionStore transferred sessions storeTransferSession deletes preexisting transferred session file|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/model/chatSessionStore.test|title=ChatSessionStore transferred sessions storeTransferSession deletes preexisting transferred session file|occurrence=1chatSessionStore.test|ti…chatSessionStore.test|title=ChatSessionStore workspace migration migration is triggered when onDidEnterWorkspace fires|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/model/chatSessionStore.test|title=ChatSessionStore workspace migration migration is triggered when onDidEnterWorkspace fires|occurrence=1chatSessionStore.test|ti…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 does not have duplicates|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test|title=PromptsService findInstructionFilesFor does not have duplicates|occurrence=1promptsService.test|titl…promptsService.test|title=PromptsService findInstructionFilesFor finds correct instruction files|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test|title=PromptsService findInstructionFilesFor finds correct instruction files|occurrence=1promptsService.test|titl…promptsService.test|title=PromptsService listPromptFiles - extensions Contributed file with when clause is filtered inside PromptsService|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test|title=PromptsService listPromptFiles - extensions Contributed file with when clause is filtered inside PromptsService|occurrence=1promptsService.test|titl…promptsService.test|title=PromptsService listPromptFiles - extensions Provider file with when clause is filtered inside PromptsService|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test|title=PromptsService listPromptFiles - extensions Provider file with when clause is filtered inside PromptsService|occurrence=1promptsService.test|titl…mcpServerRequestHandler.test|title=Workbench - MCP - ServerRequestHandler callTool forwards _meta.traceparent to the JSON-RPC payload (MCP SEP-414)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpServerRequestHandler.test|title=Workbench - MCP - ServerRequestHandler callTool forwards _meta.traceparent to the JSON-RPC payload (MCP SEP-414)|occurrence=1mcpServerRequestHandler.…mcpServerRequestHandler.test|title=Workbench - MCP - ServerRequestHandler should handle error responses|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpServerRequestHandler.test|title=Workbench - MCP - ServerRequestHandler should handle error responses|occurrence=1mcpServerRequestHandler.…mcpServerRequestHandler.test|title=Workbench - MCP - ServerRequestHandler should handle server notifications|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpServerRequestHandler.test|title=Workbench - MCP - ServerRequestHandler should handle server notifications|occurrence=1mcpServerRequestHandler.…aiRelatedInformationService.test|title=AiRelatedInformationService should check if providers are registered|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/aiRelatedInformation/test/common/aiRelatedInformationService.test|title=AiRelatedInformationService should check if providers are registered|occurrence=1aiRelatedInformationServ…aiRelatedInformationService.test|title=AiRelatedInformationService should register and unregister providers|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/aiRelatedInformation/test/common/aiRelatedInformationService.test|title=AiRelatedInformationService should register and unregister providers|occurrence=1aiRelatedInformationServ…tokenStyleResolving.test|title=Themes - TokenStyleResolving color defaults|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/themes/test/node/tokenStyleResolving.test|title=Themes - TokenStyleResolving color defaults|occurrence=1tokenStyleResolving.test…userActivityService.test|title=UserActivityService isActive should be true initially|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/userActivity/test/common/userActivityService.test|title=UserActivityService isActive should be true initially|occurrence=1userActivityService.test…userActivityService.test|title=UserActivityService markActive should be inactive when all handles gone|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/userActivity/test/common/userActivityService.test|title=UserActivityService markActive should be inactive when all handles gone|occurrence=1userActivityService.test…resources.test|title=ResourceGlobMatcher Basics|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/test/common/resources.test|title=ResourceGlobMatcher Basics|occurrence=1resources.test|title=Res…Focused file · src/vs/platform/instantiation/common/descriptors.ts · 21 LOCcommon/descriptors.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 > /*--------------------------------------------------------------------------------------------- descriptors.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 >
6 > export class SyncDescriptor<T> {
7 >
8 > readonly ctor: any;
9 > readonly staticArguments: unknown[];
10 > readonly supportsDelayedInstantiation: boolean;
11 >
12 > constructor(ctor: new (...args: any[]) => T, staticArguments: unknown[] = [], supportsDelayedInstantiation: boolean = false) {
13 > this.ctor = ctor; descriptors.ts ×1
14 > this.staticArguments = staticArguments;
15 > this.supportsDelayedInstantiation = supportsDelayedInstantiation;
16 > }
18 >
19 > export interface SyncDescriptor0<T> {
20 > readonly ctor: new () => T;
21 > }