Add a help button

This commit is contained in:
Matt Rubens 2025-02-11 23:13:59 -05:00
parent 88e3662393
commit a96443090a
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"roo-cline": patch
---
Add a help button

View file

@ -99,6 +99,11 @@
"title": "Settings",
"icon": "$(settings-gear)"
},
{
"command": "roo-cline.helpButtonClicked",
"title": "Documentation",
"icon": "$(question)"
},
{
"command": "roo-cline.openInNewTab",
"title": "Open In New Tab",
@ -225,6 +230,11 @@
"command": "roo-cline.settingsButtonClicked",
"group": "navigation@6",
"when": "view == roo-cline.SidebarProvider"
},
{
"command": "roo-cline.helpButtonClicked",
"group": "navigation@7",
"when": "view == roo-cline.SidebarProvider"
}
]
},

View file

@ -38,6 +38,9 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
"roo-cline.historyButtonClicked": () => {
provider.postMessageToWebview({ type: "action", action: "historyButtonClicked" })
},
"roo-cline.helpButtonClicked": () => {
vscode.env.openExternal(vscode.Uri.parse("https://docs.roocode.com"))
},
}
}