claudeSdkPipeline.ts ×5

Frontier kind: Joint frontier

unlabeled · c_a94339afaa24

1 test · 59004 LOC · 346 files · introduces 1 test · 29 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges29 lines · 4 files
Tests
1 test

Contains — complete concept membership

All code (extent)
6394 ranges59004 lines · 346 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

4 files ranked by introduced lines: 29 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/claudeSdkPipeline.ts 20 introduced LOC · 5 ranges

Open complete file

128
129 async reconcileMcpServerEnablement(desired: ReadonlyMap<string, boolean>): Promise<boolean> {
130 > const query = await this._ensureQueryBound(); claudeSdkPipeline.ts
131 > const observed = new Map((await query.mcpServerStatus()).map(server => [server.name, server.status !== 'disabled']));
132 > for (const [serverName, enabled] of desired) {
133 > if (observed.get(serverName) === enabled) {
134 > continue;
135 > }
136 > if (!await this._applyMcpServerEnablement(query, serverName, enabled)) {
137 return false;
138 }
140 > return true;
141 > }
142
143 private async _applyMcpServerEnablement(query: Query, serverName: string, enabled: boolean): Promise<boolean> {
144 > if (!query.toggleMcpServer || (enabled && !query.reconnectMcpServer)) { claudeSdkPipeline.ts
145 return false;
146 }
147 > await query.toggleMcpServer(serverName, enabled); claudeSdkPipeline.ts
148 > if (enabled) {
149 > await query.reconnectMcpServer!(serverName);
150 > }
151 > return true;
152 > }
153
154 /**
164 }
165 if (!this._query) {
166 > this._bindWarmQuery(); claudeSdkPipeline.ts
167 > await this._replayCurrentConfig();
168 > }
169 return this._query!;
170 }
src/vs/platform/agentHost/node/shared/mcpCustomizationController.ts 6 introduced LOC · 2 ranges

Open complete file

482 return customizations.map(customization => {
483 if (customization.type === CustomizationType.McpServer) {
484 > return applyMcpEnablement(customization, desiredById); mcpCustomizationController.ts
485 > }
486 let changed = false;
487 const children = customization.children?.map(child => {
494 }
495
496 > function applyMcpEnablement<T extends McpServerCustomization | Extract<ChildCustomization, { type: CustomizationType.McpServer }>>(customization: T, desiredById: ReadonlyMap<string, boolean>): T { mcpCustomizationController.ts
497 > const enabled = desiredById.get(customization.id);
498 > return enabled === undefined || enabled === customization.enabled ? customization : { ...customization, enabled };
499 > }
500
501 export function findMcpServerName(customizations: readonly Customization[], id: string): string | undefined {
src/vs/platform/agentHost/node/claude/claudeAgentSession.ts 2 introduced LOC · 1 range

Open complete file

1060 return;
1061 }
1063 > if (!await pipeline.reconcileMcpServerEnablement(desired)) {
1064 throw new Error(`Claude SDK cannot reconcile MCP server enablement`);
1065 }
src/vs/platform/agentHost/node/claude/customizations/scan/claudeMcpScan.ts 1 introduced LOC · 1 range

Open complete file

85 return { kind: McpServerStatus.Ready };
86 case 'disabled':
87 > return { kind: McpServerStatus.Stopped }; claudeMcpScan.ts
88 default:
89 return { kind: McpServerStatus.Starting };