agentHostStateManager.ts ×7

Frontier kind: Code frontier

unlabeled · c_72f184b6e10c

26 tests · 20307 LOC · 96 files · introduces 0 tests · 27 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges27 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1930 ranges20307 lines · 96 files · Browse complete extent
All tests (intent)
26 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: 27 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/agentHostStateManager.ts 25 introduced LOC · 7 ranges

Open complete file

104 /** Drops the pending dirty flag for `session` without flushing it. */
105 clearDirty(session: string): void {
106 > this._dirty.delete(session); agentHostStateManager.ts
107 > }
108
109 /** Drops all notification bookkeeping for `session`. */
887 */
888 deleteSession(session: URI): void {
889 > const wasAnnounced = this._summaryNotifier.isAnnounced(session); agentHostStateManager.ts
890 > // Drop any pending summary diff: the forthcoming SessionRemoved notification
891 > // supersedes it and we don't want to emit spurious SessionSummaryChanged
892 > // events just before the session disappears from the client's view.
893 > this._summaryNotifier.clearDirty(session);
894 > // Tear down per-session changesets first so subscribers see the
895 > // final `changeset/cleared` envelope before the session itself goes
896 > // away. The envelopes flow through the same emitter as everything
897 > // else, so callers observing `onDidEmitEnvelope` get a deterministic
898 > // order: changeset/cleared (per changeset) → session removal.
899 > this.disposeSessionChangesets(session);
900 > this.disposeSessionAnnotations(session);
901 > this.removeSession(session);
902 > if (wasAnnounced) {
903 this._onDidEmitNotification.fire({
904 type: 'root/sessionRemoved',
907 });
908 }
910
911 // ---- Session meta -------------------------------------------------------
1074 */
1075 disposeSessionChangesets(session: URI): void {
1076 > // Collect first because `disposeChangeset` mutates the underlying agentHostStateManager.ts
1077 > // map via its envelope handler.
1078 > const toDispose: URI[] = [];
1079 > for (const uri of this._changesets.keys()) {
1080 const parsed = parseChangesetUri(uri);
1081 if (parsed && parsed.sessionUri === session) {
1095 */
1096 disposeSessionAnnotations(session: URI): void {
1097 > this._annotations.delete(buildAnnotationsUri(session)); agentHostStateManager.ts
1098 > }
1099
1100 // ---- Turn tracking ------------------------------------------------------
src/vs/platform/agentHost/node/agentHostChangesetStateCache.ts 2 introduced LOC · 1 range

Open complete file