claudeMapSessionEvents.ts ×6

Frontier kind: Code frontier

unlabeled · c_9ac9fface7a0

11 tests · 24185 LOC · 107 files · introduces 0 tests · 21 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges21 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1959 ranges24185 lines · 107 files · Browse complete extent
All tests (intent)
11 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.

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.

2 files ranked by introduced lines: 21 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/claudeMapSessionEvents.ts 16 introduced LOC · 6 ranges

Open complete file

99
100 endToolBlock(index: number): void {
101 > this._activeToolBlocks.delete(index); claudeMapSessionEvents.ts
102 > }
103
104 /**
122 */
123 finalizeToolBlock(index: number): void {
124 > const tracked = this._activeToolBlocks.get(index); claudeMapSessionEvents.ts
125 > if (!tracked) {
126 return;
127 }
128 this.toolCalls.finalize(tracked.toolUseId);
130
131 /**
660
661 case 'content_block_stop': {
662 > const tracked = state.getActiveToolBlock(event.index); claudeMapSessionEvents.ts
663 > state.finalizeToolBlock(event.index);
664 > state.endToolBlock(event.index);
665 > if (!tracked) {
666 return [];
667 }
668 const entry = state.toolCalls.lookup(tracked.toolUseId);
669 const info = entry?.info;
670 > if (!info) { claudeMapSessionEvents.ts
671 return [];
672 }
680 toolCallId: tracked.toolUseId,
681 invocationMessage: info.invocationMessage,
682 > ...(info.toolInput !== undefined ? { toolInput: info.toolInput } : {}), claudeMapSessionEvents.ts
683 > confirmed: ToolCallConfirmationReason.NotNeeded,
684 > ...(meta ? { _meta: meta } : {}),
685 > },
686 > }];
687 > }
688
689 case 'message_delta':
src/vs/platform/agentHost/test/node/claudeMapSessionEventsTestUtils.ts 5 introduced LOC · 1 range

Open complete file

215
216 export function makeContentBlockStop(index: number): BetaRawContentBlockStopEvent {
218 > type: 'content_block_stop',
219 > index,
220 > };
221 > }
222
223 export function makeMessageStop(): BetaRawMessageStopEvent {