claudeToolDisplay.ts ×19
Frontier kind: Code frontier
unlabeled · c_f5ed48eabe76
32 tests · 17808 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
365
*/
366
export function getClaudeInvocationMessage (
368
>
displayName : string ,
369
>
input : unknown ,
370
>
) : StringOrMarkdown {
371
>
const serverDisplay = getServerToolDisplay ( toolName , input ) ? . invocationMessage ;
372
>
if ( serverDisplay !== undefined ) {
373
return serverDisplay ;
374
}
376
>
case 'Bash' : {
377
const firstLine = firstShellLine ( input );
378
if ( firstLine ) {
381
return localize ( 'claude.toolInvoke.bash' , "Running shell command" );
382
}
384
return localize ( 'claude.toolInvoke.bashOutput' , "Reading shell output" );
386
return localize ( 'claude.toolInvoke.killBash' , "Killing shell command" );
388
>
case 'NotebookRead' : {
389
const path = getClaudeToolPath ( toolName , input );
390
if ( path ) {
393
return localize ( 'claude.toolInvoke.read' , "Reading file" );
394
}
396
const path = getClaudeToolPath ( toolName , input );
397
if ( path ) {
400
return localize ( 'claude.toolInvoke.ls' , "Listing directory" );
401
}
403
>
case 'Edit' :
404
>
case 'MultiEdit' :
405
>
case 'NotebookEdit' : {
406
const path = getClaudeToolPath ( toolName , input );
407
if ( path ) {
410
return localize ( 'claude.toolInvoke.edit' , "Editing file" );
411
}
413
return localize ( 'claude.toolInvoke.todoWrite' , "Updating todo list" );
415
const pattern = readStringField ( input , 'pattern' );
416
if ( pattern ) {
419
return localize ( 'claude.toolInvoke.grep' , "Searching files" );
420
}
422
const pattern = readStringField ( input , 'pattern' );
423
if ( pattern ) {
426
return localize ( 'claude.toolInvoke.glob' , "Finding files" );
427
}
429
const url = readStringField ( input , 'url' );
430
if ( url ) {
433
return localize ( 'claude.toolInvoke.webFetchGeneric' , "Fetching URL" );
434
}
436
>
case 'Agent' : {
437
const description = readStringField ( input , 'description' );
438
if ( description ) {
441
return displayName ;
442
}
444
const skill = readStringField ( input , 'skill' );
445
if ( skill ) {
448
return localize ( 'claude.toolInvoke.skill' , "Running skill" );
449
}
451
const subject = readStringField ( input , 'subject' );
452
if ( subject ) {
455
return localize ( 'claude.toolInvoke.taskCreate' , "Creating task" );
456
}
458
switch ( readTaskUpdateStatus ( input )) {
459
case 'in_progress' : return localize ( 'claude.toolInvoke.taskStart' , "Starting task" );
462
default : return localize ( 'claude.toolInvoke.taskUpdate' , "Updating task" );
463
}
465
return localize ( 'claude.toolInvoke.taskList' , "Reading task list" );
467
return localize ( 'claude.toolInvoke.taskGet' , "Reading task" );
469
return displayName ;
471
>
}
472
473
/**