async.ts ×2

Frontier kind: Code frontier

unlabeled · c_b4e6bf79d363

29 tests · 6909 LOC · 31 files · introduces 0 tests · 10 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges10 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
998 ranges6909 lines · 31 files · Browse complete extent
All tests (intent)
29 testsBrowse complete intent

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.

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.

Introduced files, introduced tests, and structurally relevant concept specializationchatService.test|title=ChatService cancelCurrentRequestForSession returns after timeout if response does not complete|occurrence=1 · 0 introduced LOCchatService.test|title=C…chatServiceImpl.ts ×2 · 15 introduced LOCchatServiceImpl.ts ×2chatServiceImpl.ts ×3 · 22 introduced LOCchatServiceImpl.ts ×3chatService.test|title=ChatService cancelCurrentRequestForSession waits for response completion|occurrence=1 · 0 introduced LOCchatService.test|title=C…chatServiceImpl.ts ×4 · 9 introduced LOCchatServiceImpl.ts ×4chatServiceImpl.ts ×4 · 20 introduced LOCchatServiceImpl.ts ×4sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery discover mode watches the discovered skill root so new skills fire onDidChange|occurrence=1 · 0 introduced LOCsessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when an existing agent file is deleted under a non-recursively watched root|occurrence=1 · 0 introduced LOCsessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when an existing agent file is modified under a non-recursively watched root|occurrence=1 · 0 introduced LOCsessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when fixed hook settings file is modified|occurrence=1 · 0 introduced LOCsessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when a new agent file is added under a non-recursively watched root|occurrence=1 · 0 introduced LOCsessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when AGENTS.md in the workspace root is modified|occurrence=1 · 0 introduced LOCsessionCustomizationDisc…tunnelAgentHostService.ts ×1 · 2 introduced LOCtunnelAgentHostService.t…tunnelAgentHostService.ts ×1 · 2 introduced LOCtunnelAgentHostService.t…tunnelAgentHostService.ts ×1 · 1 introduced LOCtunnelAgentHostService.t…sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect does not fire onDidRelayClose for superseded relay|occurrence=1, sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow messages from superseded relay still arrive (only close is suppressed)|occurrence=1, +1 · 0 introduced LOCsshRemoteAgentHostServic…sshRemoteAgentHostService.ts ×1 · 2 introduced LOCsshRemoteAgentHostServic…sshRemoteAgentHostService.ts ×1 · 26 introduced LOCsshRemoteAgentHostServic…sshRemoteAgentHostService.ts ×1 · 6 introduced LOCsshRemoteAgentHostServic…sshRemoteAgentHostService.ts ×1 · 1 introduced LOCsshRemoteAgentHostServic…sshRemoteAgentHostService.ts ×4 · 43 introduced LOCsshRemoteAgentHostServic…tunnelAgentHostService.ts ×1 · 10 introduced LOCtunnelAgentHostService.t…aiRelatedInformationService.ts ×2 · 5 introduced LOCaiRelatedInformationServ…aiRelatedInformationService.ts ×1 · 4 introduced LOCaiRelatedInformationServ…aiRelatedInformationService.ts ×6 · 41 introduced LOCaiRelatedInformationServ…async.ts ×1 · 2 introduced LOCasync.ts ×1async.test|title=Async raceTimeout|occurrence=1 · 0 introduced LOCasync.test|title=Async r…async.test|title=Async AsyncReader peekTimeout - with delayed data|occurrence=1 · 0 introduced LOCasync.test|title=Async A…async.ts ×1 · 1 introduced LOCasync.ts ×1async.test|title=Async AsyncReader peekTimeout - empty iterator|occurrence=1 · 0 introduced LOCasync.test|title=Async A…async.ts ×1 · 1 introduced LOCasync.ts ×1async.ts ×1 · 2 introduced LOCasync.ts ×1async.ts ×1 · 2 introduced LOCasync.ts ×1async.ts ×202 · 1247 introduced LOCasync.ts ×202resources.ts ×23 · 253 introduced LOCresources.ts ×23network.ts ×20 · 292 introduced LOCnetwork.ts ×20extpath.ts ×17 · 91 introduced LOCextpath.ts ×17strings.ts ×101 · 542 introduced LOCstrings.ts ×101cancellation.ts ×18 · 90 introduced LOCcancellation.ts ×18event.ts ×1 · 1 introduced LOCevent.ts ×1event.ts ×4 · 9 introduced LOCevent.ts ×4event.ts ×2 · 6 introduced LOCevent.ts ×2event.ts ×93 · 864 introduced LOCevent.ts ×93utils.ts ×3 · 9 introduced LOCutils.ts ×3linkedList.ts ×13 · 44 introduced LOClinkedList.ts ×13lifecycle.ts ×2 · 4 introduced LOClifecycle.ts ×2lifecycle.ts ×4 · 8 introduced LOClifecycle.ts ×4lifecycle.ts ×6 · 16 introduced LOClifecycle.ts ×6lazy.ts ×1 · 2 introduced LOClazy.ts ×1lazy.ts ×3 · 37 introduced LOClazy.ts ×3lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1uint.ts ×2 · 43 introduced LOCuint.ts ×2lifecycle.ts ×1 · 3 introduced LOClifecycle.ts ×1map.ts ×97 · 3334 introduced LOCmap.ts ×97src/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/async.ts · 2749 LOCcommon/async.tssrc/vs/base/common/cache.ts · 153 LOCcommon/cache.tssrc/vs/base/common/cancellation.ts · 206 LOCcommon/cancellation.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/event.ts · 1964 LOCcommon/event.tssrc/vs/base/common/extpath.ts · 433 LOCcommon/extpath.tssrc/vs/base/common/functional.ts · 32 LOCcommon/functional.tssrc/vs/base/common/iterator.ts · 194 LOCcommon/iterator.tssrc/vs/base/common/lazy.ts · 57 LOCcommon/lazy.tssrc/vs/base/common/lifecycle.ts · 974 LOCcommon/lifecycle.tssrc/vs/base/common/linkedList.ts · 151 LOCcommon/linkedList.tssrc/vs/base/common/map.ts · 1016 LOCcommon/map.tssrc/vs/base/common/marshallingIds.ts · 33 LOCcommon/marshallingIds.tssrc/vs/base/common/network.ts · 440 LOCcommon/network.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/resources.ts · 444 LOCcommon/resources.tssrc/vs/base/common/stopwatch.ts · 41 LOCcommon/stopwatch.tssrc/vs/base/common/strings.ts · 1413 LOCcommon/strings.tssrc/vs/base/common/symbols.ts · 9 LOCcommon/symbols.tssrc/vs/base/common/types.ts · 410 LOCcommon/types.tssrc/vs/base/common/uint.ts · 59 LOCcommon/uint.tssrc/vs/base/common/uri.ts · 754 LOCcommon/uri.tssrc/vs/base/test/common/utils.ts · 107 LOCcommon/utils.tssrc/vs/nls.ts · 244 LOCvs/nls.tssrc/vs/platform/agentHost/node/sshRemoteAgentHostService.ts · 1548 LOCnode/sshRemoteAgentHostS…src/vs/platform/agentHost/node/tunnelAgentHostService.ts · 390 LOCnode/tunnelAgentHostServ…src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts · 2360 LOCchatService/chatServiceI…src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.ts · 388 LOCchatService/chatServiceT…src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.ts · 103 LOCcommon/aiRelatedInformat…async.test|title=Async AsyncReader peekTimeout - empty iterator|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/async.test|title=Async AsyncReader peekTimeout - empty iterator|occurrence=1async.test|title=Async A…async.test|title=Async AsyncReader peekTimeout - timeout occurs|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/async.test|title=Async AsyncReader peekTimeout - timeout occurs|occurrence=1async.test|title=Async A…async.test|title=Async AsyncReader peekTimeout - with delayed data|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/async.test|title=Async AsyncReader peekTimeout - with delayed data|occurrence=1async.test|title=Async A…async.test|title=Async AsyncReader peekTimeout - with immediate data|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/async.test|title=Async AsyncReader peekTimeout - with immediate data|occurrence=1async.test|title=Async A…async.test|title=Async raceTimeout|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/async.test|title=Async raceTimeout|occurrence=1async.test|title=Async r…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery discover mode watches the discovered skill root so new skills fire onDidChange|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery discover mode watches the discovered skill root so new skills fire onDidChange|occurrence=1sessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when AGENTS.md in the workspace root is modified|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when AGENTS.md in the workspace root is modified|occurrence=1sessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when a new agent file is added under a non-recursively watched root|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when a new agent file is added under a non-recursively watched root|occurrence=1sessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when an existing agent file is deleted under a non-recursively watched root|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when an existing agent file is deleted under a non-recursively watched root|occurrence=1sessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when an existing agent file is modified under a non-recursively watched root|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when an existing agent file is modified under a non-recursively watched root|occurrence=1sessionCustomizationDisc…sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when fixed hook settings file is modified|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sessionCustomizationDiscovery.test|title=SessionCustomizationDiscovery fires onDidChange when fixed hook settings file is modified|occurrence=1sessionCustomizationDisc…sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow creates fresh relay on reconnect without restarting agent|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow creates fresh relay on reconnect without restarting agent|occurrence=1sshRemoteAgentHostServic…sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow messages from superseded relay still arrive (only close is suppressed)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow messages from superseded relay still arrive (only close is suppressed)|occurrence=1sshRemoteAgentHostServic…sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect cleans up SSH client when relay recreation fails|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect cleans up SSH client when relay recreation fails|occurrence=1sshRemoteAgentHostServic…sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect does not fire onDidRelayClose for superseded relay|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect does not fire onDidRelayClose for superseded relay|occurrence=1sshRemoteAgentHostServic…sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect preserves connection token and address|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect preserves connection token and address|occurrence=1sshRemoteAgentHostServic…sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect rejects with timeout when relay creation hangs (silently dead SSH client)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect rejects with timeout when relay creation hangs (silently dead SSH client)|occurrence=1sshRemoteAgentHostServic…error listeners from shared SSH client|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect removes old close/error listeners from shared SSH client|occurrence=1error listeners from sha…sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect suppresses synchronous close from old relay during replacement|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect suppresses synchronous close from old relay during replacement|occurrence=1sshRemoteAgentHostServic…tunnelAgentHostService.test|title=TunnelAgentHostService - withTimeout rethrows the operation error verbatim when it rejects before the timeout|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/tunnelAgentHostService.test|title=TunnelAgentHostService - withTimeout rethrows the operation error verbatim when it rejects before the timeout|occurrence=1tunnelAgentHostService.t…tunnelAgentHostService.test|title=TunnelAgentHostService - withTimeout returns the operation result when it settles within the timeout|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/tunnelAgentHostService.test|title=TunnelAgentHostService - withTimeout returns the operation result when it settles within the timeout|occurrence=1tunnelAgentHostService.t…tunnelAgentHostService.test|title=TunnelAgentHostService - withTimeout throws a step-named timeout error when the operation hangs past the deadline|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/tunnelAgentHostService.test|title=TunnelAgentHostService - withTimeout throws a step-named timeout error when the operation hangs past the deadline|occurrence=1tunnelAgentHostService.t…chatService.test|title=ChatService cancelCurrentRequestForSession returns after timeout if response does not complete|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService cancelCurrentRequestForSession returns after timeout if response does not complete|occurrence=1chatService.test|title=C…chatService.test|title=ChatService cancelCurrentRequestForSession waits for response completion|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService cancelCurrentRequestForSession waits for response completion|occurrence=1chatService.test|title=C…chatService.test|title=ChatService sendPendingRequestImmediately cancels current and sends the queued message on local sessions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService sendPendingRequestImmediately cancels current and sends the queued message on local sessions|occurrence=1chatService.test|title=C…chatService.test|title=ChatService sendPendingRequestImmediately re-sends a steering message as a turn on agent host sessions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatService/chatService.test|title=ChatService sendPendingRequestImmediately re-sends a steering message as a turn on agent host sessions|occurrence=1chatService.test|title=C…aiRelatedInformationService.test|title=AiRelatedInformationService should get different types of related information|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/aiRelatedInformation/test/common/aiRelatedInformationService.test|title=AiRelatedInformationService should get different types of related information|occurrence=1aiRelatedInformationServ…aiRelatedInformationService.test|title=AiRelatedInformationService should get related information|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/aiRelatedInformation/test/common/aiRelatedInformationService.test|title=AiRelatedInformationService should get related information|occurrence=1aiRelatedInformationServ…aiRelatedInformationService.test|title=AiRelatedInformationService should return empty array on timeout|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/services/aiRelatedInformation/test/common/aiRelatedInformationService.test|title=AiRelatedInformationService should return empty array on timeout|occurrence=1aiRelatedInformationServ…Focused concept · async.ts ×2 · 10 introduced LOCasync.ts ×2

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

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: 10 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/base/common/async.ts 10 introduced LOC · 2 ranges

Open complete file

156
157 export function raceTimeout<T>(promise: Promise<T>, timeout: number, onTimeout?: () => void): Promise<T | undefined> {
158 > let promiseResolve: ((value: T | undefined) => void) | undefined = undefined; async.ts
159 >
160 > const timer = setTimeout(() => {
161 promiseResolve?.(undefined);
162 onTimeout?.();
163 > }, timeout); async.ts
164 >
165 > return Promise.race([
166 > promise.finally(() => clearTimeout(timer)),
167 > new Promise<T | undefined>(resolve => promiseResolve = resolve)
168 > ]);
169 > }
170
171 export function asPromise<T>(callback: () => T | Thenable<T>): Promise<T> {