sessionDataService.ts ×5

Frontier kind: Joint frontier

unlabeled · c_b7b2be392b1d

2 tests · 20724 LOC · 63 files · introduces 1 test · 17 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges17 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
1983 ranges20724 lines · 63 files · Browse complete extent
All tests (intent)
2 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.

1 test introduced at this concept.

Introduced code

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

1 file ranked by introduced lines: 17 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/sessionDataService.ts 17 introduced LOC · 5 ranges

Open complete file

112
113 async deleteSessionData(session: URI): Promise<void> {
114 > const dir = this.getSessionDataDir(session); sessionDataService.ts
115 > // Fire the will-delete event first so subscribers (notably the
116 > // checkpoint service) can perform async cleanup that needs the
117 > // database to still be readable. `waitUntil` collects each
118 > // subscriber's promise; we await them all before touching disk.
119 > const pending: Promise<unknown>[] = [];
120 > try {
121 > this._onWillDeleteSessionData.fire({
122 > session,
123 > waitUntil: p => { pending.push(p); },
124 > });
125 > } catch (err) {
126 this._logService.warn(`[SessionDataService] onWillDeleteSessionData listener threw synchronously: ${dir.toString()}`, err);
127 }
128 > if (pending.length > 0) { sessionDataService.ts
129 const results = await Promise.allSettled(pending);
130 for (const r of results) {
134 }
135 }
136 > try { sessionDataService.ts
137 > if (await this._fileService.exists(dir)) {
138 await this._fileService.del(dir, { recursive: true });
139 this._logService.trace(`[SessionDataService] Deleted session data: ${dir.toString()}`);
140 }
141 > } catch (err) { sessionDataService.ts
142 this._logService.warn(`[SessionDataService] Failed to delete session data: ${dir.toString()}`, err);
143 }
145
146 async cleanupOrphanedData(knownSessionIds: Set<string>): Promise<void> {