Skip to content

Commit a964430

Browse files
committed
Add a help button
1 parent 88e3662 commit a964430

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.changeset/clean-bears-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Add a help button

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
"title": "Settings",
100100
"icon": "$(settings-gear)"
101101
},
102+
{
103+
"command": "roo-cline.helpButtonClicked",
104+
"title": "Documentation",
105+
"icon": "$(question)"
106+
},
102107
{
103108
"command": "roo-cline.openInNewTab",
104109
"title": "Open In New Tab",
@@ -225,6 +230,11 @@
225230
"command": "roo-cline.settingsButtonClicked",
226231
"group": "navigation@6",
227232
"when": "view == roo-cline.SidebarProvider"
233+
},
234+
{
235+
"command": "roo-cline.helpButtonClicked",
236+
"group": "navigation@7",
237+
"when": "view == roo-cline.SidebarProvider"
228238
}
229239
]
230240
},

src/activate/registerCommands.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
3838
"roo-cline.historyButtonClicked": () => {
3939
provider.postMessageToWebview({ type: "action", action: "historyButtonClicked" })
4040
},
41+
"roo-cline.helpButtonClicked": () => {
42+
vscode.env.openExternal(vscode.Uri.parse("https://docs.roocode.com"))
43+
},
4144
}
4245
}
4346

0 commit comments

Comments
 (0)