agentHostRepoInfoTelemetry.ts ×6
Frontier kind: Code frontier
unlabeled · c_af673218a4ee
4 tests · 21381 LOC · 80 files · introduces 0 tests · 25 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
6 ranges 25 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: 25 introduced LOC across 6 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/agentHostRepoInfoTelemetry.ts 25 introduced LOC · 6 ranges
Open complete file
228
return this . _report ( telemetryContext , isContextCurrent , telemetryMessageId , location , repoInfo , 'tooManyChanges' , safety . workspaceFileCount , fileDiffs . length , 0 );
229
}
231
>
const repositoryRoot = await this . _gitService . getRepositoryRoot ( workingDirectory );
232
>
if ( ! repositoryRoot ) {
233
return undefined ;
234
}
238
return undefined ;
239
}
241
>
const fileRelativePaths = JSON . stringify ([... new Set ( resolvedDescriptors . map ( descriptor => descriptor . newPath ?? descriptor . oldPath ). filter (( path ) : path is string => path !== undefined ))]);
242
>
// The SDK does not expose per-path exclusion decisions yet, so withhold patch content unless exclusion is explicitly disabled.
243
>
if ( telemetryContext . copilotIgnoreEnabled !== false ) {
244
return await this . _reportIfTreeUnchanged ( telemetryContext , isContextCurrent , telemetryMessageId , location , repoInfo , workingDirectory , tree , 'success' , safety . workspaceFileCount , fileDiffs . length , 0 , fileRelativePaths );
245
}
283
284
private _describeFileDiff ( repositoryRoot : URI , diff : ISessionFileDiff , untrackedPaths : ReadonlySet < string >) : IRepoInfoFileDescriptor | undefined {
286
>
const afterUri = diff . after ? . uri ;
287
>
const oldPath = beforeUri ? relativePath ( repositoryRoot , URI . parse ( beforeUri )) : undefined ;
288
>
const newPath = afterUri ? relativePath ( repositoryRoot , URI . parse ( afterUri )) : undefined ;
289
>
if (( ! oldPath && ! newPath ) || ( ! beforeUri && ! afterUri )) {
290
return undefined ;
291
}
293
>
let status : IRepoInfoFileDescriptor [ 'status' ];
294
>
if ( ! beforeUri ) {
295
status = newPath && untrackedPaths . has ( newPath ) ? 'UNTRACKED' : 'INDEX_ADDED' ;
297
status = 'DELETED' ;
298
} else if ( beforeUri !== afterUri ) {
301
status = 'MODIFIED' ;
302
}
304
>
uri ,
305
>
originalUri : beforeUri ?? uri ,
306
>
renameUri : status === 'INDEX_RENAMED' ? afterUri : undefined ,
307
>
status ,
308
>
oldPath ,
309
>
newPath ,
310
>
};
311
>
}
312
313
private _report ( telemetryContext : IAgentHostRestrictedTelemetryContext , isContextCurrent : () => boolean , telemetryMessageId : string , location : 'begin' | 'end' , repoInfo : IRepoInfoContext , result : AgentHostRepoInfoResult , workspaceFileCount : number , changedFileCount : number , diffSizeBytes : number , fileRelativePaths? : string , diffsJSON? : string ) : AgentHostRepoInfoResult {