chatServiceImpl.ts ×5

Frontier kind: Code frontier

unlabeled · c_25bd88e30336

8 tests · 72289 LOC · 309 files · introduces 0 tests · 33 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges33 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
6219 ranges72289 lines · 309 files · Browse complete extent
All tests (intent)
8 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: 33 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts 31 introduced LOC · 5 ranges

Open complete file

1864 return;
1865 }
1867 > this.trace('processNextPendingRequest', `Processing ${allRequests.length} queued request(s) for session ${model.sessionResource}`);
1868 >
1869 > // Collect and remove all deferreds
1870 > const deferreds: DeferredPromise<ChatSendResult>[] = [];
1871 > for (const req of allRequests) {
1872 > const deferred = this._queuedRequestDeferreds.get(req.request.id);
1873 > this._queuedRequestDeferreds.delete(req.request.id);
1874 > if (deferred) {
1875 > deferreds.push(deferred);
1876 > }
1877 > }
1878 >
1879 > // Build send options from the first request, combining attachments from all
1880 > const firstRequest = allRequests[0];
1881 >
1882 > // Preserve terminal correlation only when all merged requests agree on the
1883 > // same terminal. With subagents, multiple terminals can queue steering
1884 > // requests simultaneously — picking one arbitrarily would misattribute the
1885 > // notification, so we drop the ID when they conflict.
1886 > const terminalIds = new Set(allRequests.map(req => req.sendOptions.terminalExecutionId).filter((id): id is string => !!id));
1887 > if (terminalIds.size > 1) {
1888 this.info('processNextPendingRequest', `Dropping terminalExecutionId: ${terminalIds.size} conflicting terminal IDs (${[...terminalIds].join(', ')})`);
1889 }
1905 return;
1906 }
1908 > // For multiple steering requests, combine texts and re-parse; otherwise use as-is
1909 > let parsedRequest: IParsedChatRequest;
1910 > try {
1911 > if (allRequests.length > 1) {
1912 const combinedText = allRequests.map(req => req.request.message.text).join('\n\n');
1913 // message.text already includes agent/slash-command prefixes from the
1918 slashCommand: undefined,
1919 });
1920 > } else { chatServiceImpl.ts
1921 parsedRequest = firstRequest.request.message;
1922 }
1929 return;
1930 }
1932 const silentAgent = sendOptions.agentIdSilent ? this.chatAgentService.getAgent(sendOptions.agentIdSilent) : undefined;
1933 const agent = silentAgent ?? parsedRequest.parts.find((r): r is ChatRequestAgentPart => r instanceof ChatRequestAgentPart)?.agent ?? defaultAgent;
1945 };
1946 for (const deferred of deferreds) {
1947 > deferred.complete(result); chatServiceImpl.ts
1948 > }
1949 }
1950
src/vs/workbench/contrib/chat/common/model/chatModel.ts 2 introduced LOC · 1 range

Open complete file

426
427 public get attempt(): number {
428 > return this._attempt; chatModel.ts
429 > }
430
431 public get variableData(): IChatRequestVariableData {