Skip to content

Commit f57b94f

Browse files
authored
mcp: fix only keeping 1 MCP server per config file (#254522)
Fixes #254498
1 parent d69b3d2 commit f57b94f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class McpWorkbenchService extends Disposable implements IMcpWorkbenchServ
216216
} else {
217217
server = this.instantiationService.createInstance(McpWorkbenchServer, e => this.getInstallState(e), local, gallery, undefined);
218218
}
219-
this._local = this._local.filter(e => e.name === local.name);
219+
this._local = this._local.filter(e => e.name !== local.name);
220220
this._local.push(server);
221221
this._onChange.fire(server);
222222
return server;

0 commit comments

Comments
 (0)