Skip to content

Commit f7031c0

Browse files
nang-devHimanshu-Singh-Chauhan
authored andcommitted
Expose focus command to command palette
1 parent ab9dc26 commit f7031c0

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@
153153
"command": "roo-cline.terminalExplainCommandInCurrentTask",
154154
"title": "Roo Code: Explain This Command (Current Task)",
155155
"category": "Terminal"
156+
},
157+
{
158+
"command": "roo-cline.focus",
159+
"title": "Roo Code: Bring To Focus",
160+
"category": "Roo Code"
156161
}
157162
],
158163
"menus": {

src/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ export function activate(context: vscode.ExtensionContext) {
169169
registerCodeActions(context)
170170
registerTerminalActions(context)
171171

172+
context.subscriptions.push(
173+
vscode.commands.registerCommand("roo-cline.focus", async (...args: any[]) => {
174+
await vscode.commands.executeCommand("roo-cline.SidebarProvider.focus")
175+
}),
176+
)
177+
172178
return createClineAPI(outputChannel, sidebarProvider)
173179
}
174180

0 commit comments

Comments
 (0)