agentHostChangesetFileMonitorCoordinator.ts ×8

Frontier kind: Code frontier

unlabeled · c_62c92782642f

34 tests · 26006 LOC · 107 files · introduces 0 tests · 24 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges24 lines · 2 files
Tests
0 tests

Contains — complete concept membership

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

src/vs/platform/agentHost/node/agentHostChangesetFileMonitorCoordinator.ts 17 introduced LOC · 8 ranges

Open complete file

117
118 onSessionTurnActiveChanged(sessionStr: string, active: boolean): void {
119 > this._activeTurnSequencer.queue(sessionStr, async () => { agentHostChangesetFileMonitorCoordinator.ts
120 > if (active) {
121 > await this._markSessionActive(sessionStr);
122 > } else {
123 this._markSessionInactive(sessionStr);
124 }
126 > }
127
128 private _destroyWatchInterest(sessionStr: string): void {
287
288 private async _markSessionActive(sessionStr: string): Promise<void> {
289 > this._removeActiveSession(sessionStr); agentHostChangesetFileMonitorCoordinator.ts
290 > this._pendingWatchInterest.delete(sessionStr);
291 > const repositoryRoot = await this._resolveActivityRepositoryRoot(sessionStr);
292 > if (!repositoryRoot) {
293 this._unresolvedActiveSessions.add(sessionStr);
294 this._releaseSessionRoot(sessionStr);
341
342 private async _resolveActivityRepositoryRoot(sessionStr: string): Promise<URI | undefined> {
343 > const workingDirectory = this._getActivityWorkingDirectory(sessionStr); agentHostChangesetFileMonitorCoordinator.ts
344 > if (!workingDirectory) {
345 return undefined;
346 }
src/vs/platform/agentHost/node/agentHostChangesetCoordinator.ts 7 introduced LOC · 1 range

Open complete file

115
116 onSessionTurnActiveChanged(sessionStr: string, active: boolean): void {
117 > this._changesetFileMonitor.onSessionTurnActiveChanged(sessionStr, active); agentHostChangesetCoordinator.ts
118 >
119 > // Advertised operations are disabled while a turn is active so the
120 > // working tree / branch state can't be mutated mid-request; recompute
121 > // them whenever the active-turn state flips.
122 > this._changesetOperationService.updateOperations(sessionStr);
123 > }
124
125 // ---- Subscription hooks -------------------------------------------------