filter for mcp settings (#1460)

This commit is contained in:
Evan Fannin 2025-01-26 15:58:20 +08:00 committed by GitHub
parent 397e8bda1f
commit d3d38fd227
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -683,7 +683,11 @@ export class ClineProvider implements vscode.WebviewViewProvider {
break
}
case "openExtensionSettings": {
await vscode.commands.executeCommand("workbench.action.openSettings", "@ext:saoudrizwan.claude-dev")
const settingsFilter = message.text || ""
await vscode.commands.executeCommand(
"workbench.action.openSettings",
`@ext:saoudrizwan.claude-dev ${settingsFilter}`.trim(), // trim whitespace if no settings filter
)
break
}
// Add more switch case statements here as more webview message commands