cancellation.ts ×2
Frontier kind: Code frontier
unlabeled · c_e3f5ac39cfad
1255 tests · 4389 LOC · 22 files · introduces 0 tests · 8 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
2 ranges 8 lines · 1 files
Tests
0 tests
Contains — complete concept membership
Neighbourhood graph
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
Introduced files, introduced tests, and structurally relevant concept specialization
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 native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
cancellation.ts ×2 — Focused concept
Introduced files:
promptFilesLocator.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
promptFilesLocator.ts ×13 — Ancestor (broader)
Introduced files:
Introduced tests:
chatServiceImpl.ts ×2 — Ancestor (broader)
Introduced files:
chatService.test|title=ChatService race condition: processNextPendingRequest dequeues before commit handler runs|occurrence=1 — Ancestor (broader)
Introduced tests:
chatService.test|title=ChatService steering message queued triggers setYieldRequested|occurrence=1 — Ancestor (broader)
Introduced tests:
chatRequestParser.ts ×1 — Ancestor (broader)
Introduced files:
chatServiceImpl.ts ×2 — Ancestor (broader)
Introduced files:
chatServiceImpl.ts ×7 — Ancestor (broader)
Introduced files:
chatServiceImpl.ts ×3 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
claudeAgent.test|title=ClaudeAgent — Phase 11 customizations createChat({ sideChat }) forks hidden context and filters inherited turns|occurrence=1 — Ancestor (broader)
Introduced tests:
textSearchManager.ts ×2 — Ancestor (broader)
Introduced files:
agentService.test|title=AgentService (node dispatcher) dispatchAction aborts pending AI title generation when session is disposed|occurrence=1 — Ancestor (broader)
Introduced tests:
fileSearchManager.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
fileSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
agentService.test|title=AgentService (node dispatcher) subscriber refcount eviction re-subscribing within the grace cancels the release|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×5 — Ancestor (broader)
Introduced files:
agentService.test|title=AgentService (node dispatcher) empty-session GC resubscribe within the grace period cancels GC|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×10 — Ancestor (broader)
Introduced files:
restore round-trip createChat side chat forks hidden context and filters inherited turns|occurrence=1 — Ancestor (broader)
Introduced tests:
worktreeIsolation.ts ×2 — Ancestor (broader)
Introduced files:
changesetUri.ts ×3 — Ancestor (broader)
Introduced files:
agentHostChangesetFileMonitorCoordinator.ts ×1 — Ancestor (broader)
Introduced files:
agentHostChangesetService.ts ×6 — Ancestor (broader)
Introduced files:
agentHostChangesetSubscriptionService.ts ×1 — Ancestor (broader)
Introduced files:
agentHostChangesetService.ts ×2 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×17 — Ancestor (broader)
Introduced files:
sessionCustomizationDiscovery.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostChatAgents2.ts ×98 — Ancestor (broader)
Introduced files:
Introduced tests:
settingsMerge.ts ×3 — Ancestor (broader)
Introduced files:
agentPluginFormatDetection.test|title=AgentPlugin format detection Agent Plugin root takes priority and exposes only portable core components|occurrence=1 — Ancestor (broader)
Introduced tests:
agentPluginFormatDetection.test|title=AgentPlugin format detection Copilot Plugin MCP servers expand root aliases and default cwd to plugin root|occurrence=1 — Ancestor (broader)
Introduced tests:
agentPluginServiceImpl.ts ×1 — Ancestor (broader)
Introduced files:
agentPluginFormatDetection.test|title=AgentPlugin format detection plugin label uses manifest `name` when no marketplace metadata is present|occurrence=1 — Ancestor (broader)
Introduced tests:
agentPluginServiceImpl.ts ×6 — Ancestor (broader)
Introduced files:
synchronizer.test|title=TestSynchronizer - Auto Sync accept delete during conflicts|occurrence=1 — Ancestor (broader)
Introduced tests:
synchronizer.test|title=TestSynchronizer - Auto Sync accept deleted local during conflicts|occurrence=1 — Ancestor (broader)
Introduced tests:
globalStateSync.test|title=GlobalStateSync when global state does not exist|occurrence=1 — Ancestor (broader)
Introduced tests:
synchronizer.test|title=TestSynchronizer - Auto Sync accept new content during conflicts|occurrence=1 — Ancestor (broader)
Introduced tests:
synchronizer.test|title=TestSynchronizer - Auto Sync accept remote during conflicts|occurrence=1 — Ancestor (broader)
Introduced tests:
synchronizer.test|title=TestSynchronizer - Auto Sync request latest data on precondition failure|occurrence=1 — Ancestor (broader)
Introduced tests:
synchronizer.test|title=TestSynchronizer - Auto Sync accept local during conflicts|occurrence=1 — Ancestor (broader)
Introduced tests:
synchronizer.test|title=TestSynchronizer - Manual Sync preview -> merge -> apply|occurrence=1 — Ancestor (broader)
Introduced tests:
abstractJsonSynchronizer.ts ×2 — Ancestor (broader)
Introduced files:
tasksSync.test|title=TasksSync when tasks file exists locally and remote has no tasks|occurrence=1 — Ancestor (broader)
Introduced tests:
mcpSync.ts ×3 — Ancestor (broader)
Introduced files:
synchronizer.test|title=TestSynchronizer - Auto Sync accept preview during conflicts|occurrence=1 — Ancestor (broader)
Introduced tests:
userDataSyncStoreService.ts ×3 — Ancestor (broader)
Introduced files:
chatModes.ts ×23 — Ancestor (broader)
Introduced files:
agentPluginServiceImpl.ts ×1 — Ancestor (broader)
Introduced files:
chatVariableEntries.ts ×1 — Ancestor (broader)
Introduced files:
abstractSynchronizer.ts ×2 — Ancestor (broader)
Introduced files:
abstractSynchronizer.ts ×2 — Ancestor (broader)
Introduced files:
userDataProfilesManifestSync.ts ×8 — Ancestor (broader)
Introduced files:
abstractSynchronizer.ts ×1 — Ancestor (broader)
Introduced files:
abstractSynchronizer.ts ×1 — Ancestor (broader)
Introduced files:
abstractJsonSynchronizer.ts ×8 — Ancestor (broader)
Introduced files:
abstractSynchronizer.ts ×2 — Ancestor (broader)
Introduced files:
abstractSynchronizer.ts ×3 — Ancestor (broader)
Introduced files:
promptsService.ts ×4 — Ancestor (broader)
Introduced files:
instructions|occurrence=1 — Ancestor (broader)
Introduced tests:
promptFilesLocator.test|title=PromptFilesLocator listFiles with PromptsType.hook only returns targeted json files, not sibling json files|occurrence=1 — Ancestor (broader)
Introduced tests:
promptFilesLocator.test|title=PromptFilesLocator listFiles with PromptsType.hook returns hook files from user home specific json paths|occurrence=1 — Ancestor (broader)
Introduced tests:
promptFilesLocator.test|title=PromptFilesLocator skills findAgentSkills finds skill files in configured locations|occurrence=1, promptFilesLocator.test|title=PromptFilesLocator skills findAgentSkills finds skills across multiple workspace folders|occurrence=1 — Ancestor (broader)
Introduced tests:
promptFilesLocator.test|title=PromptFilesLocator skills listFiles with PromptsType.skill does not list skills when location is disabled|occurrence=1 — Ancestor (broader)
Introduced tests:
promptFilesLocator.test|title=PromptFilesLocator getWorkspaceFolderRoots returns only workspace folder when it has .git|occurrence=1 — Ancestor (broader)
Introduced tests:
promptFilesLocator.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
promptFilesLocator.test|title=PromptFilesLocator getWorkspaceFolderRoots does not walk up when includeParents is false|occurrence=1 — Ancestor (broader)
Introduced tests:
promptFilesLocator.ts ×3 — Ancestor (broader)
Introduced files:
mcpServerRequestHandler.ts ×6 — Ancestor (broader)
Introduced files:
fileBackedInstalledPluginsStore.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
promptFilesLocator.ts ×2 — Ancestor (broader)
Introduced files:
languageModels.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
promptFilesLocator.ts ×2 — Ancestor (broader)
Introduced files:
config.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
promptFilesLocator.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 — Ancestor (broader)
Introduced tests:
promptFilesLocator.ts ×2 — Ancestor (broader)
Introduced files:
promptFilesLocator.ts ×1 — Ancestor (broader)
Introduced files:
promptFilesLocator.test|title=PromptFilesLocator hasGlobPattern detects double wildcard|occurrence=1, promptFilesLocator.test|title=PromptFilesLocator hasGlobPattern detects single wildcard|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
promptFilesLocator.test|title=PromptFilesLocator isValidSkillPath rejects glob patterns|occurrence=1, promptFilesLocator.test|title=PromptFilesLocator isValidSkillPath accepts relative paths|occurrence=1, +7 — Ancestor (broader)
Introduced tests:
voiceChatService.ts ×11 — Ancestor (broader)
Introduced files:
promptFilesLocator.ts ×9 — Ancestor (broader)
Introduced files:
promptFilesLocator.ts ×2 — Ancestor (broader)
Introduced files:
promptFilesLocator.ts ×1 — Ancestor (broader)
Introduced files:
promptFilesLocator.ts ×1 — Ancestor (broader)
Introduced files:
userDataAutoSyncService.ts ×26 — Ancestor (broader)
Introduced files:
agentSdkDownloader.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
diskFileSystemProvider.ts ×20 — Ancestor (broader)
Introduced files:
configurationService.test|title=ConfigurationService.test.ts config gets flattened|occurrence=1 — Ancestor (broader)
Introduced tests:
configurationService.test|title=ConfigurationService.test.ts simple|occurrence=1 — Ancestor (broader)
Introduced tests:
configurations.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
policyConfiguration.test|title=PolicyConfiguration change: when policy is removed|occurrence=1 — Ancestor (broader)
Introduced tests:
policyConfiguration.test|title=PolicyConfiguration change: when policy is updated|occurrence=1 — Ancestor (broader)
Introduced tests:
policyConfiguration.test|title=PolicyConfiguration change: when policy is added|occurrence=1 — Ancestor (broader)
Introduced tests:
fileService.ts ×1 — Ancestor (broader)
Introduced files:
configurationModels.ts ×1 — Ancestor (broader)
Introduced files:
agentSdkDownloader.ts ×2 — Ancestor (broader)
Introduced files:
diskFileSystemProvider.ts ×17 — Ancestor (broader)
Introduced files:
fileManagedSettingsService.ts ×6 — Ancestor (broader)
Introduced files:
agentHostGitStateService.ts ×2 — Ancestor (broader)
Introduced files:
storage.ts ×6 — Ancestor (broader)
Introduced files:
userDataProfileStorageService.ts ×2 — Ancestor (broader)
Introduced files:
agentHostGitStateService.ts ×1 — Ancestor (broader)
Introduced files:
userDataProfileStorageService.ts ×1 — Ancestor (broader)
Introduced files:
agentModelRefreshScheduler.test|title=AgentModelRefreshScheduler registering another agent does not postpone the next tick|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostGitStateService.ts ×1 — Ancestor (broader)
Introduced files:
storage.ts ×1 — Ancestor (broader)
Introduced files:
agentHostGitStateService.ts ×3 — Ancestor (broader)
Introduced files:
agentHostSessionTitleController.ts ×1 — Ancestor (broader)
Introduced files:
agentHostSessionTitleController.ts ×8 — Ancestor (broader)
Introduced files:
userDataProfileStorageService.ts ×3 — Ancestor (broader)
Introduced files:
agentHostRequestService.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
promptInputModel.test|title=PromptInputModel multi-line navigate left in multi-line|occurrence=1 — Ancestor (broader)
Introduced tests:
promptInputModel.test|title=PromptInputModel multi-line wrapped (no continuation prompt) basic wrapped line|occurrence=1 — Ancestor (broader)
Introduced tests:
promptInputModel.test|title=PromptInputModel recorded sessions Windows 11 (10.0.22621.3447), pwsh 7.4.2, starship prompt 1.10.2 input with ignored ghost text|occurrence=1 — Ancestor (broader)
Introduced tests:
requestService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
claudeSubagentResolver.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
chatStreamStats.ts ×6 — Ancestor (broader)
Introduced files:
Introduced tests:
logService.ts ×10 — Ancestor (broader)
Introduced files:
nativeManagedSettingsService.test|title=NativeManagedSettingsService keeps raw managed settings while definitions are unchanged|occurrence=1 — Ancestor (broader)
Introduced tests:
nativeManagedSettingsService.ts ×2 — Ancestor (broader)
Introduced files:
nativeManagedSettingsService.ts ×11 — Ancestor (broader)
Introduced files:
Introduced tests:
event.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
event.test|title=AsyncEmitter sequential delivery|occurrence=1, event.test|title=AsyncEmitter sequential, in-order delivery|occurrence=1 — Ancestor (broader)
Introduced tests:
event.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
agentHostClientByokLmChannel.test|title=agentHostClientByokLmChannel coalesces a burst of changes so the final snapshot reflects the latest models|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostClientByokLmChannel.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
chatDebugServiceImpl.ts ×6 — Ancestor (broader)
Introduced files:
chatDebugServiceImpl.test|title=ChatDebugServiceImpl endSession should cancel and remove the CTS for a session|occurrence=1 — Ancestor (broader)
Introduced tests:
chatDebugServiceImpl.test|title=ChatDebugServiceImpl invokeProviders should not cancel invocations for different sessions|occurrence=1 — Ancestor (broader)
Introduced tests:
chatDebugServiceImpl.ts ×1 — Ancestor (broader)
Introduced files:
chatDebugServiceImpl.ts ×1 — Ancestor (broader)
Introduced files:
chatDebugServiceImpl.ts ×5 — Ancestor (broader)
Introduced files:
agentHostWorkspaceFiles.ts ×2 — Ancestor (broader)
Introduced files:
ipc.ts ×8 — Ancestor (broader)
Introduced files:
Introduced tests:
rpcProtocol.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
ipc.ts ×4 — Ancestor (broader)
Introduced files:
rpcProtocol.test|title=RPCProtocol passing CancellationToken.None|occurrence=1 — Ancestor (broader)
Introduced tests:
rpcProtocol.ts ×3 — Ancestor (broader)
Introduced files:
ipc.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
ipc.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
ipc.ts ×2 — Ancestor (broader)
Introduced files:
ipc.ts ×11 — Ancestor (broader)
Introduced files:
ipc.ts ×3 — Ancestor (broader)
Introduced files:
ipc.ts ×3 — Ancestor (broader)
Introduced files:
ipc.ts ×8 — Ancestor (broader)
Introduced files:
ipc.ts ×1 — Ancestor (broader)
Introduced files:
ipc.ts ×5 — Ancestor (broader)
Introduced files:
ipc.ts ×3 — Ancestor (broader)
Introduced files:
zip.ts ×9 — Ancestor (broader)
Introduced files:
Introduced tests:
utils.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
buffer.test|title=Buffer bufferWriteableStream - nothing happens after end()|occurrence=1 — Ancestor (broader)
Introduced tests:
buffer.test|title=Buffer bufferWriteableStream - destroy|occurrence=1 — Ancestor (broader)
Introduced tests:
async.test|title=Async cancelablePromise execution order (sync)|occurrence=1, async.test|title=Async cancelablePromise execution order (async)|occurrence=1 — Ancestor (broader)
Introduced tests:
async.test|title=Async cancelablePromise set token, don't wait for inner promise|occurrence=1 — Ancestor (broader)
Introduced tests:
async.ts ×1 — Ancestor (broader)
Introduced files:
async.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
async.test|title=Async cancellableIterable should stop iteration when cancelled during iteration|occurrence=1 — Ancestor (broader)
Introduced tests:
stream.test|title=Stream listenStream - cancellation|occurrence=1 — Ancestor (broader)
Introduced tests:
async.ts ×1 — Ancestor (broader)
Introduced files:
paging.test|title=PagedModel cancellation works|occurrence=1 — Ancestor (broader)
Introduced tests:
jsonRpcProtocol.ts ×2 — Ancestor (broader)
Introduced files:
jsonRpcProtocol.test|title=JsonRpcProtocol handleRequest responds with result and passes cancellation token|occurrence=1 — Ancestor (broader)
Introduced tests:
jsonRpcProtocol.ts ×3 — Ancestor (broader)
Introduced files:
jsonRpcProtocol.ts ×1 — Ancestor (broader)
Introduced files:
jsonRpcProtocol.ts ×2 — Ancestor (broader)
Introduced files:
async.ts ×1 — Ancestor (broader)
Introduced files:
async.ts ×2 — Ancestor (broader)
Introduced files:
async.ts ×1 — Ancestor (broader)
Introduced files:
cache.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
async.ts ×2 — Ancestor (broader)
Introduced files:
async.ts ×1 — Ancestor (broader)
Introduced files:
paging.ts ×5 — Ancestor (broader)
Introduced files:
async.ts ×3 — Ancestor (broader)
Introduced files:
cache.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×7 — Ancestor (broader)
Introduced files:
stream.ts ×1 — Ancestor (broader)
Introduced files:
processor.ts ×1 — Ancestor (broader)
Introduced files:
cancellation.test|title=CancellationTokenPool pool token fires cancellation event when all tokens are cancelled|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
cancellation.test|title=CancellationToken parent cancels child|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.test|title=CancellationToken cancel calls all listeners|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.test|title=CancellationToken dispose calls no listeners (unless told to cancel)|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.test|title=CancellationToken cancel happens only once|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.test|title=CancellationToken dispose calls no listeners|occurrence=1 — Ancestor (broader)
Introduced tests:
cancelPreviousCalls.test|title=cancelPreviousCalls decorator different method calls must not interfere with each other|occurrence=1, cancelPreviousCalls.test|title=cancelPreviousCalls decorator cancel token of the previous call when method is called again|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.ts ×1 — Ancestor (broader)
Introduced files:
cancellation.test|title=CancellationTokenPool empty pool token is not cancelled|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.ts ×1 — Ancestor (broader)
Introduced files:
cancellation.ts ×1 — Ancestor (broader)
Introduced files:
cancellation.test|title=CancellationToken cancel before token|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.ts ×1 — Ancestor (broader)
Introduced files:
cancellation.test|title=CancellationToken token stays the same|occurrence=1 — Ancestor (broader)
Introduced tests:
cancellation.ts ×1 — Ancestor (broader)
Introduced files:
cancellation.ts ×3 — Ancestor (broader)
Introduced files:
cancellation.ts ×2 — Ancestor (broader)
Introduced files:
cancellation.ts ×2 — Ancestor (broader)
Introduced files:
cancellation.ts ×1 — Ancestor (broader)
Introduced files:
cancellation.ts ×2 — Descendant (narrower)
Introduced files:
cancellation.ts ×1 — Descendant (narrower)
Introduced files:
cancellation.ts ×18 — Descendant (narrower)
Introduced files:
event.ts ×93 — Descendant (narrower)
Introduced files:
utils.ts ×3 — Descendant (narrower)
Introduced files:
linkedList.ts ×13 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×6 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
map.ts ×97 — Descendant (narrower)
Introduced files:
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 8 introduced LOC across 2 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/base/common/cancellation.ts 8 introduced LOC · 2 ranges
Open complete file
58
}
59
61
>
62
>
private _isCancelled : boolean = false ;
63
>
private _emitter : Emitter < void > | null = null ;
64
65
public cancel() {
106
get token () : CancellationToken {
107
if ( ! this . _token ) {
109
>
// actually needed
110
>
this . _token = new MutableToken ();
111
>
}
112
return this . _token ;
113
}