copilotAgent.ts ×6

Frontier kind: Code frontier

unlabeled · c_d73f227caea7

14 tests · 51317 LOC · 300 files · introduces 0 tests · 22 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges22 lines · 1 files
Tests
0 tests

Contains — complete concept membership

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

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

Open complete file

464 // `_ensureClient`, so they only take effect on the next client start.
465 this._register(this._configurationService.onDidRootConfigChange(() => {
466 > this._restartClientIfStartupConfigChanged().catch(err => copilotAgent.ts
467 this._logService.error('[Copilot] Failed to apply root config change', err)
468 > ); copilotAgent.ts
469 }));
470
548 */
549 private async _restartClientIfStartupConfigChanged(): Promise<void> {
550 > const sessionSync = this._isSessionSyncEnabled(); copilotAgent.ts
551 > const rubberDuck = this._isRubberDuckEnabled();
552 > const copilotSdkLogLevelSetting = this._getCopilotSdkLogLevelSetting();
553 > const enterpriseHost = this._getEnterpriseHost();
554 > const systemProxyEnabled = this._isSystemProxyEnabled();
555 > if (this._lastSessionSyncEnabled === sessionSync && this._lastRubberDuckEnabled === rubberDuck && this._lastCopilotSdkLogLevelSetting === copilotSdkLogLevelSetting && this._lastEnterpriseHost === enterpriseHost && this._lastSystemProxyEnabled === systemProxyEnabled) {
556 return;
557 }
558 const changed = [
559 > this._lastSessionSyncEnabled !== sessionSync ? `sessionSync=${sessionSync}` : undefined, copilotAgent.ts
560 > this._lastRubberDuckEnabled !== rubberDuck ? `rubberDuck=${rubberDuck}` : undefined,
561 > this._lastCopilotSdkLogLevelSetting !== copilotSdkLogLevelSetting ? `copilotSdkLogLevel=${copilotSdkLogLevelSetting}` : undefined,
562 > this._lastEnterpriseHost !== enterpriseHost ? `enterpriseHost=${enterpriseHost}` : undefined,
563 > this._lastSystemProxyEnabled !== systemProxyEnabled ? `systemProxy=${systemProxyEnabled}` : undefined,
564 > ].filter((v): v is string => v !== undefined).join(', ');
565 > this._lastSessionSyncEnabled = sessionSync;
566 > this._lastRubberDuckEnabled = rubberDuck;
567 > this._lastCopilotSdkLogLevelSetting = copilotSdkLogLevelSetting;
568 > this._lastEnterpriseHost = enterpriseHost;
569 > this._lastSystemProxyEnabled = systemProxyEnabled;
570 > if (this._client) {
571 this._logService.info(`[Copilot] Startup config changed (${changed}), restarting CopilotClient`);
572 this._sessions.clearAndDisposeAll();
583 void this._scheduleModelRefresh();
584 }
585 > } copilotAgent.ts
586
587 protected _createCopilotClient(options: CopilotClientOptions): CopilotClient {
3733 this._applyHostCustomizations();
3734 this._register(this._configurationService.onDidRootConfigChange(() => {
3735 > this._applyHostCustomizations(); copilotAgent.ts
3736 }));
3737 }