copilotAgent.ts ×6

Frontier kind: Code frontier

unlabeled · c_3d34e3b6ee08

44 tests · 51177 LOC · 300 files · introduces 0 tests · 31 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges31 lines · 1 files
Tests
0 tests

Contains — complete concept membership

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

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

Open complete file

2963
2964 private _getOrCreateActiveClient(session: URI, directory: URI | undefined): ActiveClient {
2965 > let client = this._activeClients.get(session); copilotAgent.ts
2966 > if (!client) {
2967 > const pluginController = this._plugins.createSessionController(session, directory);
2968 > client = this._instantiationService.createInstance(ActiveClient, session, pluginController, this._onDidSessionProgress);
2969 > this._activeClients.set(session, client);
2970 > } else if (directory) {
2971 client.pluginController.setDirectory(directory);
2972 }
2973 > return client; copilotAgent.ts
2974 > }
2975
2976 /**
3773 */
3774 public createSessionController(session: URI, directory: URI | undefined): SessionPluginController {
3775 > return this._instantiationService.createInstance(SessionPluginController, this, session, directory); copilotAgent.ts
3776 > }
3777
3778 /**
3929
3930 constructor(
3931 > private readonly _parent: PluginController, copilotAgent.ts
3932 > private readonly _session: URI,
3933 > private _directory: URI | undefined,
3934 > @IAgentHostStateManager private readonly _stateManager: AgentHostStateManager,
3935 > @ILogService private readonly _logService: ILogService,
3936 > @IInstantiationService private readonly _instantiationService: IInstantiationService
3937 > ) {
3938 > super();
3939 > }
3940
3941 public get directory(): URI | undefined {
4381
4382 constructor(
4383 > private readonly _sessionUri: URI, copilotAgent.ts
4384 > pluginController: SessionPluginController,
4385 > onDidSessionProgress: Emitter<AgentSignal>,
4386 > @IAgentConfigurationService private readonly _configurationService: IAgentConfigurationService,
4387 > ) {
4388 > super();
4389 > this.pluginController = this._register(pluginController);
4390 > // Forward per-session publish events into the agent's progress
4391 > // stream. This replaces the previous clientId-based routing.
4392 > this._register(this.pluginController.onDidPublish(action => {
4393 onDidSessionProgress.fire({ kind: 'action', resource: this._sessionUri, action });
4394 > })); copilotAgent.ts
4395 > }
4396
4397 /** Get (or lazily create) the stable handle for `clientId`. */