constants.ts ×2

Frontier kind: Code frontier

unlabeled · c_fe6f70ec9026

4 tests · 26873 LOC · 139 files · introduces 0 tests · 11 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges11 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2971 ranges26873 lines · 139 files · Browse complete extent
All tests (intent)
4 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.

2 files ranked by introduced lines: 11 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/chat/common/constants.ts 9 introduced LOC · 2 ranges

Open complete file

396 return { sessionType: remembered, isPreferCopilotHarnessSwap: false };
397 }
398 > constants.ts
399 > // One-time migration: when the agent host is enabled and the user has opted
400 > // in via `chat.editor.preferCopilotHarness`, swap an existing local editor
401 > // session to Copilot exactly once (guarded by the persisted marker). Never
402 > // swap when the agent host is disabled, since the Copilot harness would be
403 > // unavailable. This function does not persist the marker itself; the caller
404 > // marks it only after applying the swap, so a caller that discards the
405 > // result does not consume the one-time migration.
406 if (options?.currentSessionType === localChatSessionType
407 > && agentHostEnabled constants.ts
408 && configurationService.getValue<boolean>(ChatConfiguration.EditorPreferCopilotHarness)
409 && !hasPreferredCopilotHarness(storageService)) {
src/vs/workbench/contrib/chat/common/chatSessionTypePreference.ts 2 introduced LOC · 1 range

Open complete file

22
23 export function hasPreferredCopilotHarness(storageService: IStorageService): boolean {
24 > return storageService.getBoolean(CHAT_PREFERRED_COPILOT_HARNESS_STORAGE_KEY, StorageScope.PROFILE, false); chatSessionTypePreference.ts
25 > }
26
27 export function markPreferredCopilotHarness(storageService: IStorageService): void {