agentHostChangesetOperationService.ts ×7

Frontier kind: Code frontier

unlabeled · c_e03551671bea

5 tests · 19604 LOC · 87 files · introduces 0 tests · 9 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges9 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1903 ranges19604 lines · 87 files · Browse complete extent
All tests (intent)
5 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: 9 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/agentHostChangesetOperationService.ts 9 introduced LOC · 7 ranges

Open complete file

127
128 async invokeChangesetOperation(params: InvokeChangesetOperationParams): Promise<InvokeChangesetOperationResult> {
129 > const state = this._stateManager.getChangesetState(params.channel); agentHostChangesetOperationService.ts
130 > if (!state) {
131 throw new ProtocolError(AHP_SESSION_NOT_FOUND, `Changeset not found: ${params.channel}`);
132 }
133 > const op = state.operations?.find(o => o.id === params.operationId); agentHostChangesetOperationService.ts
134 > if (!op) {
135 throw new ProtocolError(JsonRpcErrorCodes.InvalidParams, `Unknown operation '${params.operationId}' on changeset ${params.channel}`);
136 }
137 > if (op.status === ChangesetOperationStatus.Disabled) { agentHostChangesetOperationService.ts
138 throw new ProtocolError(JsonRpcErrorCodes.InvalidParams, `Operation '${params.operationId}' is disabled on changeset ${params.channel}`);
139 }
146 // branch state be mutated.
147 const parsed = parseChangesetUri(params.channel);
148 > if (parsed && this._stateManager.hasActiveTurn(parsed.sessionUri)) { agentHostChangesetOperationService.ts
149 throw new ProtocolError(JsonRpcErrorCodes.InvalidParams, `Operation '${params.operationId}' is disabled while a turn is active on changeset ${params.channel}`);
150 }
151
152 > const targetKind: ChangesetOperationScope = params.target?.kind === ChangesetOperationTargetKind.Resource agentHostChangesetOperationService.ts
153 ? ChangesetOperationScope.Resource
154 : params.target?.kind === ChangesetOperationTargetKind.Range
155 ? ChangesetOperationScope.Range
156 : ChangesetOperationScope.Changeset;
157 > if (!op.scopes.includes(targetKind)) { agentHostChangesetOperationService.ts
158 throw new ProtocolError(JsonRpcErrorCodes.InvalidParams, `Operation '${params.operationId}' does not support scope '${targetKind}' (allowed: ${op.scopes.join(', ')})`);
159 }