chatSessionStore.ts ×4

Frontier kind: Joint frontier

unlabeled · c_cda992c22f57

2 tests · 44704 LOC · 189 files · introduces 1 test · 15 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges15 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
4323 ranges44704 lines · 189 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: 15 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/chat/common/model/chatSessionStore.ts 15 introduced LOC · 4 ranges

Open complete file

311 return undefined;
312 }
314 > const sessionData = await this.readSessionFromLocation(storageLocation, undefined, sessionId);
315 >
316 > // Clean up the transferred session after reading
317 > await this.cleanupTransferredSession(sessionResource);
318 >
319 > return sessionData;
320 > } catch (e) {
321 this.reportError('getTransferredSession', 'Error getting transferred chat session', e);
322 return undefined;
647
648 if (!rawData) {
649 > try { chatSessionStore.ts
650 > rawData = (await this.fileService.readFile(flatStorageLocation)).value;
651 > fromLocation = flatStorageLocation;
652 > } catch (e) {
653 this.reportError('sessionReadFile', `Error reading flat chat session file ${sessionId}`, e);
654
669 session = revive(log.read(rawData));
670 } else {
671 > session = revive(JSON.parse(rawData.toString())); chatSessionStore.ts
672 > }
673
674 // TODO Copied from ChatService.ts, cleanup