Add MCP provider refresh for @mention dropdown submenu items
This commit is contained in:
parent
cf54304e01
commit
3ec3a870cd
1 changed files with 12 additions and 0 deletions
12
core/core.ts
12
core/core.ts
|
|
@ -147,6 +147,18 @@ export class Core {
|
|||
|
||||
MCPManagerSingleton.getInstance().onConnectionsRefreshed = () => {
|
||||
void this.configHandler.reloadConfig();
|
||||
|
||||
// Refresh @mention dropdown submenu items for MCP providers
|
||||
const mcpManager = MCPManagerSingleton.getInstance();
|
||||
const mcpProviderNames = Array.from(mcpManager.connections.keys()).map(
|
||||
(mcpId) => `mcp-${mcpId}`
|
||||
);
|
||||
|
||||
if (mcpProviderNames.length > 0) {
|
||||
this.messenger.send("refreshSubmenuItems", {
|
||||
providers: mcpProviderNames,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
this.codeBaseIndexer = new CodebaseIndexer(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue