claudeToolDisplay.ts ×19

Frontier kind: Code frontier

unlabeled · c_b68222a21f29

12 tests · 17853 LOC · 65 files · introduces 0 tests · 31 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
19 ranges31 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1220 ranges17853 lines · 65 files · Browse complete extent
All tests (intent)
12 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.

1 file ranked by introduced lines: 31 introduced LOC across 19 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/claudeToolDisplay.ts 31 introduced LOC · 19 ranges

Open complete file

479 */
480 export function getClaudePastTenseMessage(
481 > toolName: string, claudeToolDisplay.ts
482 > displayName: string,
483 > input: unknown,
484 > success: boolean,
485 > resultText?: string,
486 > ): StringOrMarkdown {
487 > if (!success) {
488 return localize('claude.toolComplete.failed', "\"{0}\" failed", displayName);
489 }
490 const serverDisplay = getServerToolDisplay(toolName, input, { text: resultText, success })?.pastTenseMessage;
491 > if (serverDisplay !== undefined) { claudeToolDisplay.ts
492 return serverDisplay;
493 }
500 return localize('claude.toolComplete.bash', "Ran shell command");
501 }
502 > case 'BashOutput': claudeToolDisplay.ts
503 return localize('claude.toolComplete.bashOutput', "Read shell output");
504 > case 'KillBash': claudeToolDisplay.ts
505 return localize('claude.toolComplete.killBash', "Killed shell command");
506 > case 'Read': claudeToolDisplay.ts
507 > case 'NotebookRead': {
508 const path = getClaudeToolPath(toolName, input);
509 if (path) {
512 return localize('claude.toolComplete.read', "Read file");
513 }
514 > case 'LS': { claudeToolDisplay.ts
515 const path = getClaudeToolPath(toolName, input);
516 if (path) {
519 return localize('claude.toolComplete.ls', "Listed directory");
520 }
521 > case 'Write': claudeToolDisplay.ts
522 > case 'Edit':
523 > case 'MultiEdit':
524 > case 'NotebookEdit': {
525 const path = getClaudeToolPath(toolName, input);
526 if (path) {
529 return localize('claude.toolComplete.edit', "Edited file");
530 }
531 > case 'TodoWrite': claudeToolDisplay.ts
532 return localize('claude.toolComplete.todoWrite', "Updated todo list");
533 > case 'Grep': { claudeToolDisplay.ts
534 const pattern = readStringField(input, 'pattern');
535 if (pattern) {
538 return localize('claude.toolComplete.grep', "Searched files");
539 }
540 > case 'Glob': { claudeToolDisplay.ts
541 const pattern = readStringField(input, 'pattern');
542 if (pattern) {
545 return localize('claude.toolComplete.glob', "Found files");
546 }
547 > case 'WebFetch': { claudeToolDisplay.ts
548 const url = readStringField(input, 'url');
549 if (url) {
552 return localize('claude.toolComplete.webFetchGeneric', "Fetched URL");
553 }
554 > case 'Task': claudeToolDisplay.ts
555 > case 'Agent':
556 return localize('claude.toolComplete.task', "Ran subagent");
557 > case 'Skill': { claudeToolDisplay.ts
558 const skill = readStringField(input, 'skill');
559 if (skill) {
562 return localize('claude.toolComplete.skill', "Ran skill");
563 }
564 > case 'TaskCreate': { claudeToolDisplay.ts
565 const subject = readStringField(input, 'subject');
566 if (subject) {
569 return localize('claude.toolComplete.taskCreate', "Created task");
570 }
571 > case 'TaskUpdate': claudeToolDisplay.ts
572 switch (readTaskUpdateStatus(input)) {
573 case 'in_progress': return localize('claude.toolComplete.taskStart', "Started task");
576 default: return localize('claude.toolComplete.taskUpdate', "Updated task");
577 }
578 > case 'TaskList': claudeToolDisplay.ts
579 return localize('claude.toolComplete.taskList', "Read task list");
580 > case 'TaskGet': claudeToolDisplay.ts
581 return localize('claude.toolComplete.taskGet', "Read task");
582 > default: claudeToolDisplay.ts
583 return displayName;
585 > }
586
587 /**