Skip to content

Commit 7f2de39

Browse files
committed
Add docs button
1 parent 059b14e commit 7f2de39

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
"command": "cline.openInNewTab",
100100
"title": "Open In New Tab",
101101
"category": "Cline"
102+
},
103+
{
104+
"command": "cline.openDocumentation",
105+
"title": "Documentation",
106+
"icon": "$(book)"
102107
}
103108
],
104109
"menus": {
@@ -124,14 +129,19 @@
124129
"when": "view == claude-dev.SidebarProvider"
125130
},
126131
{
127-
"command": "cline.accountButtonClicked",
132+
"command": "cline.openDocumentation",
128133
"group": "navigation@5",
129134
"when": "view == claude-dev.SidebarProvider"
130135
},
131136
{
132-
"command": "cline.settingsButtonClicked",
137+
"command": "cline.accountButtonClicked",
133138
"group": "navigation@6",
134139
"when": "view == claude-dev.SidebarProvider"
140+
},
141+
{
142+
"command": "cline.settingsButtonClicked",
143+
"group": "navigation@7",
144+
"when": "view == claude-dev.SidebarProvider"
135145
}
136146
]
137147
},

src/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ export function activate(context: vscode.ExtensionContext) {
123123
}),
124124
)
125125

126+
context.subscriptions.push(
127+
vscode.commands.registerCommand("cline.openDocumentation", () => {
128+
vscode.env.openExternal(vscode.Uri.parse("https://docs.cline.bot/"))
129+
}),
130+
)
131+
126132
/*
127133
We use the text document content provider API to show the left side for diff view by creating a virtual document for the original content. This makes it readonly so users know to edit the right side if they want to keep their changes.
128134

0 commit comments

Comments
 (0)