Skip to content

Commit d0f5874

Browse files
committed
refactor(mcp): remove info notifications during refresh; rely on UI indicator
1 parent 57a7bda commit d0f5874

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/services/mcp/McpHub.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,10 +1212,6 @@ export class McpHub {
12121212

12131213
public async refreshAllConnections(): Promise<void> {
12141214
if (this.isConnecting) {
1215-
// TODO: This notification is temporarily disabled as a stopgap until we can separate
1216-
// MCP settings from regular settings, allowing them to be saved independently without
1217-
// triggering unnecessary MCP server refreshes
1218-
// Disabled notification: vscode.window.showInformationMessage(t("mcp:info.already_refreshing"))
12191215
return
12201216
}
12211217

@@ -1237,10 +1233,6 @@ export class McpHub {
12371233
}
12381234

12391235
this.isConnecting = true
1240-
// TODO: This notification is temporarily disabled as a stopgap until we can separate
1241-
// MCP settings from regular settings, allowing them to be saved independently without
1242-
// triggering unnecessary MCP server refreshes
1243-
// Disabled notification: vscode.window.showInformationMessage(t("mcp:info.refreshing_all"))
12441236

12451237
try {
12461238
const globalPath = await this.getMcpSettingsFilePath()
@@ -1250,14 +1242,6 @@ export class McpHub {
12501242
const globalConfig = JSON.parse(globalContent)
12511243
globalServers = globalConfig.mcpServers || {}
12521244
const globalServerNames = Object.keys(globalServers)
1253-
// TODO: This notification is temporarily disabled as a stopgap until we can separate
1254-
// MCP settings from regular settings, allowing them to be saved independently without
1255-
// triggering unnecessary MCP server refreshes
1256-
// Disabled notification: vscode.window.showInformationMessage(
1257-
// t("mcp:info.global_servers_active", {
1258-
// mcpServers: `${globalServerNames.join(", ") || "none"}`,
1259-
// }),
1260-
// )
12611245
} catch (error) {
12621246
console.log("Error reading global MCP config:", error)
12631247
}
@@ -1270,14 +1254,6 @@ export class McpHub {
12701254
const projectConfig = JSON.parse(projectContent)
12711255
projectServers = projectConfig.mcpServers || {}
12721256
const projectServerNames = Object.keys(projectServers)
1273-
// TODO: This notification is temporarily disabled as a stopgap until we can separate
1274-
// MCP settings from regular settings, allowing them to be saved independently without
1275-
// triggering unnecessary MCP server refreshes
1276-
// Disabled notification: vscode.window.showInformationMessage(
1277-
// t("mcp:info.project_servers_active", {
1278-
// mcpServers: `${projectServerNames.join(", ") || "none"}`,
1279-
// }),
1280-
// )
12811257
} catch (error) {
12821258
console.log("Error reading project MCP config:", error)
12831259
}
@@ -1297,11 +1273,6 @@ export class McpHub {
12971273
await delay(100)
12981274

12991275
await this.notifyWebviewOfServerChanges()
1300-
1301-
// TODO: This notification is temporarily disabled as a stopgap until we can separate
1302-
// MCP settings from regular settings, allowing them to be saved independently without
1303-
// triggering unnecessary MCP server refreshes
1304-
// Disabled notification: vscode.window.showInformationMessage(t("mcp:info.all_refreshed"))
13051276
} catch (error) {
13061277
this.showErrorMessage("Failed to refresh MCP servers", error)
13071278
} finally {

0 commit comments

Comments
 (0)