reducer.ts ×3

Frontier kind: Code frontier

unlabeled · c_7b18b9fafc05

11 tests · 19753 LOC · 83 files · introduces 0 tests · 20 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges20 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1947 ranges19753 lines · 83 files · Browse complete extent
All tests (intent)
11 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: 20 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/agentHostStateManager.ts 11 introduced LOC · 2 ranges

Open complete file

785 return;
786 }
787 > const sessionState = entry.state; agentHostStateManager.ts
788 if (chatUri === sessionState.defaultChat || isDefaultChatUri(chatUri)) {
789 this._logService.warn(`[AgentHostStateManager] refusing to remove default chat: ${chatUri}`);
790 return;
791 }
792 > // Drop the chat from its session's active-turn set before deleting its agentHostStateManager.ts
793 > // state. A peer chat can be removed while it still has an active turn;
794 > // because active-turn tracking is driven by chat state transitions,
795 > // deleting the ChatState here without this would strand the chat URI in
796 > // the active set forever, keeping the session permanently "active"
797 > // (activeSessions > 0) and leaving changeset operations disabled.
798 > this._removeChatActiveTurn(session, chatUri);
799 > this._chatStates.delete(chatUri);
800 > this._chatProviderData.delete(chatUri);
801 > this.dispatchServerAction(session, { type: ActionType.SessionChatRemoved, chat: chatUri });
802 }
803
src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.ts 9 introduced LOC · 3 ranges

Open complete file

123
124 case ActionType.SessionChatRemoved: {
125 > const list = state.chats; reducer.ts
126 > const idx = list.findIndex(c => c.resource === action.chat);
127 > if (idx < 0) {
128 return state;
129 }
130 > const updated = list.slice(); reducer.ts
131 > updated.splice(idx, 1);
132 > const next: SessionState = { ...state, chats: updated };
133 > if (state.defaultChat === action.chat) {
134 delete next.defaultChat;
135 }
136 > return next; reducer.ts
137 > }
138
139 case ActionType.SessionChatUpdated: {