Skip to content

Commit 5b412a9

Browse files
committed
Expose focus command to command palette
1 parent 5852b67 commit 5b412a9

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@
123123
"command": "roo-cline.addToContext",
124124
"title": "Roo Code: Add To Context",
125125
"category": "Roo Code"
126+
},
127+
{
128+
"command": "roo-cline.focus",
129+
"title": "Roo Code: Bring To Focus",
130+
"category": "Roo Code"
126131
}
127132
],
128133
"menus": {

src/extension.ts

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

273273
registerCodeAction(context, "roo-cline.addToContext", "ADD_TO_CONTEXT")
274274

275+
context.subscriptions.push(
276+
vscode.commands.registerCommand("roo-cline.focus", async (...args: any[]) => {
277+
await vscode.commands.executeCommand("roo-cline.SidebarProvider.focus")
278+
}),
279+
)
280+
275281
return createClineAPI(outputChannel, sidebarProvider)
276282
}
277283

0 commit comments

Comments
 (0)