Skip to content

Commit e734146

Browse files
authored
mcp: fix reregistering mcp tool leading to an error (microsoft#258827)
Closes microsoft#256521
1 parent 709aafe commit e734146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/mcp/common/mcpLanguageModelToolContribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class McpLanguageModelToolContribution extends Disposable implements IWor
127127
existing.store.clear();
128128
// We need to re-register both the data and implementation, as the
129129
// implementation is discarded when the data is removed (#245921)
130-
registerTool(tool, toolData, store);
130+
registerTool(tool, toolData, existing.store);
131131
}
132132
toDelete.delete(tool.id);
133133
} else {

0 commit comments

Comments
 (0)