agentService.ts ×5

Frontier kind: Joint frontier

unlabeled · c_0fcd46c28d3c

1 test · 51588 LOC · 304 files · introduces 1 test · 12 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges12 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5419 ranges51588 lines · 304 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

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

Open complete file

3045 return await this._withWorktreeProject(session, await agent.getSessionMetadata(session));
3046 } catch (err) {
3047 > if (err instanceof ProtocolError) { agentService.ts
3048 throw err;
3049 }
3050 > try { agentService.ts
3051 > return await this._withWorktreeProject(session, await this._getSessionMetadataFromCatalog(agent, session));
3052 > } catch (fallbackErr) {
3053 if (fallbackErr instanceof ProtocolError) {
3054 const message = err instanceof Error ? err.message : String(err);
3081
3082 private async _getSessionMetadataFromCatalog(agent: IAgent, session: URI): Promise<IAgentSessionMetadata | undefined> {
3083 > const sessionStr = session.toString(); agentService.ts
3084 > let allSessions;
3085 > try {
3086 > allSessions = await agent.listSessions();
3087 > } catch (err) {
3088 if (err instanceof ProtocolError) {
3089 throw err;
3092 throw new ProtocolError(JSON_RPC_INTERNAL_ERROR, `Failed to list sessions for ${sessionStr}: ${message}`);
3093 }
3094 > return allSessions.find(s => s.session.toString() === sessionStr); agentService.ts
3095 > }
3096
3097 async resourceRead(uri: URI): Promise<ResourceReadResult> {