copilotAgent.ts ×2

Frontier kind: Code frontier

unlabeled · c_0b1c255f31e4

6 tests · 51311 LOC · 300 files · introduces 0 tests · 18 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges18 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4893 ranges51311 lines · 300 files · Browse complete extent
All tests (intent)
6 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: 18 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/copilotAgent.ts 18 introduced LOC · 2 ranges

Open complete file

656
657 async getSessionCustomizations(session: URI): Promise<readonly Customization[]> {
658 > const directory = await this._getSessionCustomizationDirectory(session); copilotAgent.ts
659 > const activeClient = this._getOrCreateActiveClient(session, directory);
660 > const fromPlugins = await activeClient.pluginController.getCustomizationsSettled();
661 > const sessionId = AgentSession.id(session);
662 > const entry = this._findAnySession(sessionId);
663 > const topLevelMcp = entry?.topLevelMcpCustomizations() ?? [];
664 > const customizations = [...fromPlugins, ...topLevelMcp];
665 > const desired = this._stateManager.getSessionState(session.toString())?.customizations ?? [];
666 > return applyMcpServerEnablement(customizations, desired);
667 > }
668
669 async handleMcpRequest(session: URI, serverName: string, method: string, params: Record<string, unknown> | undefined): Promise<unknown> {
4016 */
4017 public async getCustomizationsSettled(): Promise<readonly Customization[]> {
4018 > const entry = this._discoveredEntry(); copilotAgent.ts
4019 > await Promise.all([
4020 > this._parent.hostSync().catch(err => this._logService.warn('[Copilot:SessionPluginController] Host customization update failed', err)),
4021 > ...[...this._clients.values()].map(client => client.sync.catch(err => this._logService.warn('[Copilot:SessionPluginController] Client customization sync failed', err))),
4022 > entry?.whenSettled(),
4023 > ]);
4024 > return this.getCustomizations();
4025 > }
4026
4027 /** Returns the parsed plugins currently enabled for this session, awaiting any pending sync. */