copilotAgent.ts ×6

Frontier kind: Joint frontier

unlabeled · c_d9a673d2b43f

1 test · 51400 LOC · 300 files · introduces 1 test · 12 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges12 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
4910 ranges51400 lines · 300 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 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/copilotAgent.ts 12 introduced LOC · 6 ranges

Open complete file

2068 const entry = await this._ensureChatSession(context.session, chat);
2069 if (!entry) {
2070 > throw new Error(`[Copilot] sendMessage for unknown chat: ${chat.toString()}`); copilotAgent.ts
2071 > }
2072 if (turnId) {
2073 entry.resetTurnState(turnId, senderClientId);
2642 return live;
2643 }
2644 > const parsed = parseChatUri(chat); copilotAgent.ts
2645 > if (!parsed) {
2646 return undefined;
2647 }
2648 > const persisted = await this._readPersistedChats(session); copilotAgent.ts
2649 > const info = persisted.get(parsed.chatId);
2650 > if (info) {
2651 this._chatBackings.set(chatKey, info);
2652 }
2653 > return info; copilotAgent.ts
2654 }
2655
2678 const info = await this._resolveChatBacking(session, chat);
2679 if (!info) {
2680 > return undefined; copilotAgent.ts
2681 > }
2682 const parentEntry = this._findAnySession(sessionId) ?? await this._resumeSession(sessionId).catch(() => undefined);
2683 const workingDirectory = parentEntry?.workingDirectory
3201 const ref = await this._sessionDataService.tryOpenDatabase(session);
3202 if (!ref) {
3203 > return new Map(); copilotAgent.ts
3204 > }
3205 try {
3206 const raw = await ref.object.getMetadata(CopilotAgent._META_CHATS);