copilotToolDisplay.ts ×7

Frontier kind: Joint frontier

unlabeled · c_fa9958a3b8a4

2 tests · 52315 LOC · 304 files · introduces 1 test · 28 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
11 ranges28 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5636 ranges52315 lines · 304 files · Browse complete extent
All tests (intent)
2 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

src/vs/platform/agentHost/test/node/historyRecordFixtures.ts 15 introduced LOC · 4 ranges

Open complete file

148 } else if (msg.type === 'message' && msg.role === 'assistant') {
149 if (msg.parentToolCallId) {
150 > continue; historyRecordFixtures.ts
151 > }
152 if (!currentTurn) {
153 currentTurn = startTurn(msg.messageId, '');
316 });
317 } else if (msg.type === 'message' && msg.role === 'assistant') {
318 > if (msg.reasoningText) { historyRecordFixtures.ts
319 responseParts.push({
320 kind: ResponsePartKind.Reasoning,
323 });
324 }
325 > if (msg.content) { historyRecordFixtures.ts
326 > responseParts.push({
327 > kind: ResponsePartKind.Markdown,
328 > id: generateUuid(),
329 > content: msg.content,
330 > });
331 > }
332 > }
333 }
334
458 content: d?.content ?? '',
459 toolRequests: d?.toolRequests?.map(tr => ({
460 > toolCallId: tr.toolCallId, historyRecordFixtures.ts
461 > name: tr.name,
462 > arguments: tr.arguments !== undefined ? tryStringify(tr.arguments) : undefined,
463 > type: tr.type,
464 })),
465 reasoningOpaque: d?.reasoningOpaque,
src/vs/platform/agentHost/node/copilot/copilotToolDisplay.ts 13 introduced LOC · 7 ranges

Open complete file

630 return md(localize('toolInvoke.viewFile', "Reading {0}", link));
631 }
632 > return localize('toolInvoke.view', "Reading file"); copilotToolDisplay.ts
633 > }
634 case CopilotToolName.Edit: {
635 const args = parameters as ICopilotFileToolArgs | undefined;
661 }
662 case CopilotToolName.Glob: {
663 > const args = parameters as ICopilotGlobToolArgs | undefined; copilotToolDisplay.ts
664 > if (args?.pattern) {
665 return md(localize('toolInvoke.globPattern', "Finding files matching {0}", appendEscapedMarkdownInlineCode(truncate(args.pattern, 80))));
666 }
667 > return localize('toolInvoke.glob', "Finding files"); copilotToolDisplay.ts
668 > }
669 case CopilotToolName.ApplyPatch:
670 case CopilotToolName.GitApplyPatch: {
754 return md(localize('toolComplete.viewFile', "Read {0}", link));
755 }
756 > return localize('toolComplete.view', "Read file"); copilotToolDisplay.ts
757 > }
758 case CopilotToolName.Edit: {
759 const args = parameters as ICopilotFileToolArgs | undefined;
785 }
786 case CopilotToolName.Glob: {
787 > const args = parameters as ICopilotGlobToolArgs | undefined; copilotToolDisplay.ts
788 > if (args?.pattern) {
789 return md(localize('toolComplete.globPattern', "Found files matching {0}", appendEscapedMarkdownInlineCode(truncate(args.pattern, 80))));
790 }
791 > return localize('toolComplete.glob', "Found files"); copilotToolDisplay.ts
792 > }
793 case CopilotToolName.ApplyPatch:
794 case CopilotToolName.GitApplyPatch: {
1005 const description = typeof parameters.description === 'string' && parameters.description.length > 0
1006 ? parameters.description
1007 > : undefined; copilotToolDisplay.ts
1008 return { agentName, description };
1009 }