constructor(readonly capacity: number) {
}
get size(): number {
Frontier kind: Code frontier
unlabeled · c_1fdd260634b8
24 tests · 11079 LOC · 49 files · introduces 0 tests · 34 LOC · 1 file
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.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatDebugServiceImpl.test|title=ChatDebugServiceImpl invokeProviders should invoke providers for claude-code sessions|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatDebugServiceImpl.test|title=ChatDebugServiceImpl invokeProviders should invoke providers for copilotcli sessions|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatDebugServiceImpl.test|title=ChatDebugServiceImpl log should log events for claude-code sessions|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatDebugServiceImpl.test|title=ChatDebugServiceImpl log should log events for copilotcli sessions|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatDebugServiceImpl.test|title=ChatDebugServiceImpl addEvent and getEvents should handle different event kinds|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatDebugServiceImpl.test|title=ChatDebugServiceImpl event deduplication should allow events without IDs to coexist|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatDebugServiceImpl.test|title=ChatDebugServiceImpl activeSessionResource should be settable|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/chatDebugServiceImpl.test|title=ChatDebugServiceImpl activeSessionResource should default to undefined|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 34 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
constructor(readonly capacity: number) {
}
get size(): number {
push(event: IChatDebugEvent): void {
this._buffer[idx] = event;
if (this._size < this.capacity) {
this._size++;
} else {
this._head = (this._head + 1) % this.capacity;
}
/** Return events in insertion order. */
*/
private _capacityForSession(sessionResource: URI): number {
return ChatDebugServiceImpl.MAX_EVENTS_PER_SESSION;
}
const configured = this._configurationService.getValue<number>(AgentHostAgentDebugLogMaxEventsSettingId);
if (typeof configured === 'number' && Number.isFinite(configured) && configured >= 1) {
chatDebugServiceImpl.ts
return Math.floor(configured);
}
return ChatDebugServiceImpl.MAX_EVENTS_PER_SESSION;
log(sessionResource: URI, name: string, details?: string, level: ChatDebugLogLevel = ChatDebugLogLevel.Info, options?: { id?: string; category?: string; parentEventId?: string }): void {
addEvent(event: IChatDebugEvent): void {
// events during streaming target an existing buffer, so we reuse its
// capacity and avoid re-reading configuration on the hot path.
let buffer = this._sessionBuffers.get(event.sessionResource);
const capacity = buffer?.capacity ?? this._capacityForSession(event.sessionResource);
// Deduplicate events that share the same ID. The extension may emit
// both a subagentInvocation and a userMessage from the same span;
// keep the richer kind and discard the duplicate.
if (event.id) {
let seen = this._seenEventIds.get(event.sessionResource);
if (!seen) {
}
}
if (!buffer) {
// Evict least-recently-used session if we are at the session cap.
if (this._sessionOrder.length >= ChatDebugServiceImpl.MAX_SESSIONS) {
const evicted = this._sessionOrder.shift()!;
this._evictSession(evicted);
}
this._sessionBuffers.set(event.sessionResource, buffer);
this._sessionOrder.push(event.sessionResource);
} else {
// Move to end of LRU order so actively-used sessions are not evicted.
// Fast-path: during streaming/backfill all events target the same
}
}
this._onDidAddEvent.fire(event);
}
addProviderEvent(event: IChatDebugEvent): void {