We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c3771 commit f13f62eCopy full SHA for f13f62e
webview-ui/src/components/modes/ModesView.tsx
@@ -263,8 +263,19 @@ const ModesView = () => {
263
type: "updateModeToProfileMapping",
264
mapping: newMapping,
265
})
266
- }
267
// If switching to 'selected' mode, keep current selections (or start with empty)
+ } else {
268
+ // Add mode to mapping with current selection (or empty array)
269
+ const newMapping = {
270
+ ...modeToProfile,
271
+ [visualMode]: selectedMcpServers,
272
+ }
273
+ setModeToProfile(newMapping)
274
+ vscode.postMessage({
275
+ type: "updateModeToProfileMapping",
276
+ mapping: newMapping,
277
+ })
278
279
},
280
[visualMode, modeToProfile],
281
)
0 commit comments