agentService.ts ×9

Frontier kind: Code frontier

unlabeled · c_c1c47e153adf

4 tests · 50808 LOC · 304 files · introduces 0 tests · 26 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges26 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5176 ranges50808 lines · 304 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: 26 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/agentService.ts 24 introduced LOC · 9 ranges

Open complete file

99 ] as const;
100
101 > function omitHostOwnedSessionConfig<T>(config: Record<string, T>): Record<string, T> { agentService.ts
102 > const result = { ...config };
103 > for (const key of HOST_OWNED_SESSION_CONFIG_KEYS) {
104 > delete result[key];
105 > }
106 > return result;
107 > }
108
109 /**
529 */
530 setWorktreeIsolation(worktree: WorktreeIsolation): void {
531 > this._worktree = worktree; agentService.ts
532 > this._configurationService.setWorktreeIsolation(worktree);
533 > this._sideEffects.setWorktreeIsolation(worktree);
534 > }
535
536 private _toProviderConfig<T extends { readonly config?: Record<string, unknown> }>(request: T): T {
538 return request;
539 }
540 > return { ...request, config: omitHostOwnedSessionConfig(request.config) }; agentService.ts
541 }
542
1727 return result;
1728 }
1729 > const iso = await this._worktree.resolveIsolationConfig({ workingDirectory: params.workingDirectory, config: params.config }); agentService.ts
1730 > const properties: Record<string, SessionConfigPropertySchema> = {
1731 > [SessionConfigKey.Isolation]: iso.isolationProperty.protocol,
1732 > ...omitHostOwnedSessionConfig(result.schema.properties),
1733 > };
1734 > if (iso.branchProperty) {
1735 properties[SessionConfigKey.Branch] = iso.branchProperty.protocol;
1736 }
1737 > if (iso.worktreeBranchPrefixProperty) { agentService.ts
1738 properties[SessionConfigKey.WorktreeBranchPrefix] = iso.worktreeBranchPrefixProperty.protocol;
1739 }
1740 > if (iso.worktreeIncludeFilesProperty) { agentService.ts
1741 properties[SessionConfigKey.WorktreeIncludeFiles] = iso.worktreeIncludeFilesProperty.protocol;
1742 }
1743 > const values = omitHostOwnedSessionConfig(result.values); agentService.ts
1744 > values[SessionConfigKey.Isolation] = iso.isolationValue;
1745 if (iso.branchProperty && iso.branchValue !== undefined) {
1746 values[SessionConfigKey.Branch] = iso.branchValue;
1749 values[SessionConfigKey.WorktreeBranchPrefix] = params.config[SessionConfigKey.WorktreeBranchPrefix];
1750 }
1751 > if (iso.worktreeIncludeFilesProperty agentService.ts
1752 && Array.isArray(params.config?.[SessionConfigKey.WorktreeIncludeFiles])
1753 && params.config[SessionConfigKey.WorktreeIncludeFiles].every(pattern => typeof pattern === 'string')) {
1754 values[SessionConfigKey.WorktreeIncludeFiles] = params.config[SessionConfigKey.WorktreeIncludeFiles];
1755 }
1756 > return { schema: { ...result.schema, properties }, values }; agentService.ts
1757 }
1758
src/vs/platform/agentHost/node/agentSideEffects.ts 2 introduced LOC · 1 range

Open complete file

1358 /** Injects the host-owned worktree isolation controller (see {@link AgentService.setWorktreeIsolation}). */
1359 setWorktreeIsolation(worktree: WorktreeIsolation): void {
1360 > this._worktree = worktree; agentSideEffects.ts
1361 > }
1362
1363 cancelSessionTitleGeneration(session: ProtocolURI): void {