mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Merge pull request #513 from RooVetGit/fix_custom_modes_settings_button
Fix button to open custom modes settings
This commit is contained in:
5
.changeset/happy-camels-rhyme.md
Normal file
5
.changeset/happy-camels-rhyme.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"roo-cline": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix button to open custom modes settings
|
||||||
@@ -655,6 +655,13 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
case "openCustomModesSettings": {
|
||||||
|
const customModesFilePath = await this.customModesManager.getCustomModesFilePath()
|
||||||
|
if (customModesFilePath) {
|
||||||
|
openFile(customModesFilePath)
|
||||||
|
}
|
||||||
|
break
|
||||||
|
}
|
||||||
case "restartMcpServer": {
|
case "restartMcpServer": {
|
||||||
try {
|
try {
|
||||||
await this.mcpHub?.restartConnection(message.text!)
|
await this.mcpHub?.restartConnection(message.text!)
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ export interface WebviewMessage {
|
|||||||
| "updateCustomMode"
|
| "updateCustomMode"
|
||||||
| "deleteCustomMode"
|
| "deleteCustomMode"
|
||||||
| "setopenAiCustomModelInfo"
|
| "setopenAiCustomModelInfo"
|
||||||
|
| "openCustomModesSettings"
|
||||||
text?: string
|
text?: string
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
askResponse?: ClineAskResponse
|
askResponse?: ClineAskResponse
|
||||||
|
|||||||
@@ -434,8 +434,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
|
|||||||
title="Edit modes configuration"
|
title="Edit modes configuration"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
vscode.postMessage({
|
vscode.postMessage({
|
||||||
type: "openFile",
|
type: "openCustomModesSettings",
|
||||||
text: "settings/cline_custom_modes.json",
|
|
||||||
})
|
})
|
||||||
}}>
|
}}>
|
||||||
<span className="codicon codicon-json"></span>
|
<span className="codicon codicon-json"></span>
|
||||||
|
|||||||
Reference in New Issue
Block a user