agentService.ts ×5

Frontier kind: Code frontier

unlabeled · c_b99dc1156a76

2 tests · 50484 LOC · 304 files · introduces 0 tests · 19 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges19 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5068 ranges50484 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.

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: 19 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/agentService.ts 19 introduced LOC · 5 ranges

Open complete file

3096
3097 async resourceRead(uri: URI): Promise<ResourceReadResult> {
3098 > // Handle session-db: URIs that reference file-edit content stored agentService.ts
3099 > // in a per-session SQLite database.
3100 > const dbFields = parseSessionDbUri(uri.toString());
3101 > if (dbFields) {
3102 return this._fetchSessionDbContent(dbFields);
3103 }
3105 > // Handle git-blob: URIs that reference file content at a specific
3106 > // git commit (the merge-base used as diff baseline). The URI
3107 > // encodes the session it belongs to so we can find the right
3108 > // working directory to run `git show` from.
3109 > const blobFields = parseGitBlobUri(uri.toString());
3110 > if (blobFields) {
3111 return this._fetchGitBlobContent(blobFields);
3112 }
3114 > try {
3115 > const content = await this._fileService.readFile(uri);
3116 return {
3117 data: content.value.toString(),
3119 contentType: 'text/plain',
3120 };
3121 > } catch (e) { agentService.ts
3122 > const error = e instanceof Error ? e : new Error(String(e));
3123 > const result = toFileOperationResult(error);
3124 > if (result === FileOperationResult.FILE_NOT_FOUND) {
3125 throw new ProtocolError(AhpErrorCodes.NotFound, `Content not found: ${uri.toString()}`);
3126 }
3130 throw new ProtocolError(JSON_RPC_INTERNAL_ERROR, `Failed to read content: ${uri.toString()}: ${toErrorMessage(error)}`);
3131 }
3132 > } agentService.ts
3133
3134 async resourceWrite(params: ResourceWriteParams): Promise<ResourceWriteResult> {