completed adding advanced settings button
This commit is contained in:
1 parent
8cfc0fa4f4
commit
d0cdabe0ca
3 files changed
+7
-14
No files matched your search
@@ -550,11 +550,10 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
||||
this.cancelTask()
|
||||
break
|
||||
case "openMcpSettings": {
|
||||
await vscode.commands.executeCommand("workbench.action.openSettings")
|
||||
// const mcpSettingsFilePath = await this.mcpHub?.getMcpSettingsFilePath()
|
||||
// if (mcpSettingsFilePath) {
|
||||
// openFile(mcpSettingsFilePath)
|
||||
// }
|
||||
const mcpSettingsFilePath = await this.mcpHub?.getMcpSettingsFilePath()
|
||||
if (mcpSettingsFilePath) {
|
||||
openFile(mcpSettingsFilePath)
|
||||
}
|
||||
break
|
||||
}
|
||||
case "restartMcpServer": {
|
||||
@@ -566,13 +565,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
||||
break
|
||||
}
|
||||
case "openExtensionSettings": {
|
||||
const mcpSettingsFilePath = await this.mcpHub?.getMcpSettingsFilePath()
|
||||
if (mcpSettingsFilePath) {
|
||||
openFile(mcpSettingsFilePath)
|
||||
}
|
||||
await vscode.commands.executeCommand("workbench.action.openSettings", "@ext:saoudrizwan.claude-dev")
|
||||
break
|
||||
// await vscode.commands.executeCommand("workbench.action.openSettings")
|
||||
// break
|
||||
}
|
||||
// Add more switch case statements here as more webview message commands
|
||||
// are created within the webview context (i.e. inside media/main.js)
|
||||
|
||||
Reference in new issue
Block a user