chatSessionsService.ts ×4

Frontier kind: Joint frontier

unlabeled · c_896853164972

1 test · 72578 LOC · 309 files · introduces 1 test · 23 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges23 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
6328 ranges72578 lines · 309 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

3 files ranked by introduced lines: 23 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/chat/test/common/mockChatSessionsService.ts 13 introduced LOC · 2 ranges

Open complete file

230
231 setSessionOption(sessionResource: URI, optionId: string, value: string): boolean {
232 > return this.updateSessionOptions(sessionResource, new Map([[optionId, value]])); mockChatSessionsService.ts
233 > }
234
235 updateSessionOptions(sessionResource: URI, updates: ReadonlyChatSessionOptionsMap): boolean {
236 > if (!this.sessionOptions.has(sessionResource)) { mockChatSessionsService.ts
237 > this.sessionOptions.set(sessionResource, new Map());
238 > }
239 > for (const [optionId, value] of updates) {
240 > this.sessionOptions.get(sessionResource)!.set(optionId, value);
241 > }
242 >
243 > this._onDidChangeSessionOptions.fire({ sessionResource, updates });
244 >
245 > return true;
246 > }
247
248 getCapabilitiesForSessionType(chatSessionType: string): IChatAgentAttachmentCapabilities | undefined {
src/vs/workbench/contrib/chat/common/chatSessionsService.ts 8 introduced LOC · 4 ranges

Open complete file

634
635 export function toStrValueArray(map: ReadonlyChatSessionOptionsMap | undefined): Array<{ optionId: string; value: string }> | undefined {
636 > if (!map) { chatSessionsService.ts
637 return undefined;
638 }
639 > const entries = ensureIterable(map); chatSessionsService.ts
640 > return Array.from(entries, ([optionId, value]) => ({ optionId, value: typeof value === 'string' ? value : value.id }));
641 > }
642
643 /**
647 */
648 function ensureIterable(map: ReadonlyChatSessionOptionsMap): Iterable<[string, string | IChatSessionProviderOptionItem]> {
649 > if (map instanceof Map) { chatSessionsService.ts
650 > return map;
651 > }
652 // Fallback: treat as a plain record (e.g. from JSON deserialization)
653 return Object.entries(map as unknown as Record<string, string | IChatSessionProviderOptionItem>);
655 }
656
src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts 2 introduced LOC · 1 range

Open complete file

1291 // so that the agent receives them when invoked.
1292 if (initialSessionOptions) {
1293 > this.chatSessionService.updateSessionOptions(realModel.sessionResource, initialSessionOptions); chatServiceImpl.ts
1294 > }
1295
1296 // Publish the forward mapping only after a successful load (see