Skip to content

Commit d0cdabe

Browse files
completed adding advanced settings button
1 parent 8cfc0fa commit d0cdabe

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,10 @@ export class ClineProvider implements vscode.WebviewViewProvider {
550550
this.cancelTask()
551551
break
552552
case "openMcpSettings": {
553-
await vscode.commands.executeCommand("workbench.action.openSettings")
554-
// const mcpSettingsFilePath = await this.mcpHub?.getMcpSettingsFilePath()
555-
// if (mcpSettingsFilePath) {
556-
// openFile(mcpSettingsFilePath)
557-
// }
553+
const mcpSettingsFilePath = await this.mcpHub?.getMcpSettingsFilePath()
554+
if (mcpSettingsFilePath) {
555+
openFile(mcpSettingsFilePath)
556+
}
558557
break
559558
}
560559
case "restartMcpServer": {
@@ -566,13 +565,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
566565
break
567566
}
568567
case "openExtensionSettings": {
569-
const mcpSettingsFilePath = await this.mcpHub?.getMcpSettingsFilePath()
570-
if (mcpSettingsFilePath) {
571-
openFile(mcpSettingsFilePath)
572-
}
568+
await vscode.commands.executeCommand("workbench.action.openSettings", "@ext:saoudrizwan.claude-dev")
573569
break
574-
// await vscode.commands.executeCommand("workbench.action.openSettings")
575-
// break
576570
}
577571
// Add more switch case statements here as more webview message commands
578572
// are created within the webview context (i.e. inside media/main.js)

webview-ui/src/components/mcp/McpView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const McpView = ({ onDone }: McpViewProps) => {
141141
vscode.postMessage({ type: "openMcpSettings" })
142142
}}>
143143
<span className="codicon codicon-edit" style={{ marginRight: "6px" }}></span>
144-
Edit MCP Settingssss
144+
Edit MCP Settings
145145
</VSCodeButton>
146146
</div>
147147

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { validateApiConfiguration, validateModelId } from "../../utils/validate"
55
import { vscode } from "../../utils/vscode"
66
import ApiOptions from "./ApiOptions"
77

8-
// In development, process.env.NODE_ENV is 'development'
9-
const IS_DEV = process.env.NODE_ENV === 'development'
8+
const IS_DEV = false // FIXME: use flags when packaging
109

1110
type SettingsViewProps = {
1211
onDone: () => void

0 commit comments

Comments
 (0)