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 ranges 31 lines · 1 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
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 (
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 ;
492
return serverDisplay ;
493
}
500
return localize ( 'claude.toolComplete.bash' , "Ran shell command" );
501
}
503
return localize ( 'claude.toolComplete.bashOutput' , "Read shell output" );
505
return localize ( 'claude.toolComplete.killBash' , "Killed shell command" );
507
>
case 'NotebookRead' : {
508
const path = getClaudeToolPath ( toolName , input );
509
if ( path ) {
512
return localize ( 'claude.toolComplete.read' , "Read file" );
513
}
515
const path = getClaudeToolPath ( toolName , input );
516
if ( path ) {
519
return localize ( 'claude.toolComplete.ls' , "Listed directory" );
520
}
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
}
532
return localize ( 'claude.toolComplete.todoWrite' , "Updated todo list" );
534
const pattern = readStringField ( input , 'pattern' );
535
if ( pattern ) {
538
return localize ( 'claude.toolComplete.grep' , "Searched files" );
539
}
541
const pattern = readStringField ( input , 'pattern' );
542
if ( pattern ) {
545
return localize ( 'claude.toolComplete.glob' , "Found files" );
546
}
548
const url = readStringField ( input , 'url' );
549
if ( url ) {
552
return localize ( 'claude.toolComplete.webFetchGeneric' , "Fetched URL" );
553
}
555
>
case 'Agent' :
556
return localize ( 'claude.toolComplete.task' , "Ran subagent" );
558
const skill = readStringField ( input , 'skill' );
559
if ( skill ) {
562
return localize ( 'claude.toolComplete.skill' , "Ran skill" );
563
}
565
const subject = readStringField ( input , 'subject' );
566
if ( subject ) {
569
return localize ( 'claude.toolComplete.taskCreate' , "Created task" );
570
}
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
}
579
return localize ( 'claude.toolComplete.taskList' , "Read task list" );
581
return localize ( 'claude.toolComplete.taskGet' , "Read task" );
583
return displayName ;
585
>
}
586
587
/**