mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Add an activation command for other extensions (#2073)
Since VS Code provides no actionEvents that trigger when a specific extension activates, extensions can't activate only once Roo is activated and ready. This commit introduces a new roo-cline.activationCompleted command and fires it at the very end of extension activation. Other extensions that use Roo's exported APIs can now activate when they see this event. Co-authored-by: Greg Taylor <gregtaylor@netflix.com>
This commit is contained in:
parent
105bc3c0d5
commit
5fbf563216
2 changed files with 4 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ export const registerCommands = (options: RegisterCommandOptions) => {
|
|||
|
||||
const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOptions) => {
|
||||
return {
|
||||
"roo-cline.activationCompleted": () => {},
|
||||
"roo-cline.plusButtonClicked": async () => {
|
||||
await provider.removeClineFromStack()
|
||||
await provider.postStateToWebview()
|
||||
|
|
|
|||
|
|
@ -115,6 +115,9 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||
registerCodeActions(context)
|
||||
registerTerminalActions(context)
|
||||
|
||||
// Allows other extensions to activate once Roo is ready.
|
||||
vscode.commands.executeCommand('roo-cline.activationCompleted');
|
||||
|
||||
// Implements the `RooCodeAPI` interface.
|
||||
return new API(outputChannel, provider)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue