File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 63
63
"pearai-roo-cline" : [
64
64
{
65
65
"type" : " webview" ,
66
- "id" : " roo-cline.SidebarProvider" ,
66
+ "id" : " pearai- roo-cline.SidebarProvider" ,
67
67
"name" : " "
68
68
}
69
69
]
157
157
{
158
158
"command" : " roo-cline.plusButtonClicked" ,
159
159
"group" : " navigation@1" ,
160
- "when" : " view == roo-cline.SidebarProvider"
160
+ "when" : " view == pearai- roo-cline.SidebarProvider"
161
161
},
162
162
{
163
163
"command" : " roo-cline.promptsButtonClicked" ,
164
164
"group" : " navigation@2" ,
165
- "when" : " view == roo-cline.SidebarProvider"
165
+ "when" : " view == pearai- roo-cline.SidebarProvider"
166
166
},
167
167
{
168
168
"command" : " roo-cline.mcpButtonClicked" ,
169
169
"group" : " navigation@3" ,
170
- "when" : " view == roo-cline.SidebarProvider"
170
+ "when" : " view == pearai- roo-cline.SidebarProvider"
171
171
},
172
172
{
173
173
"command" : " roo-cline.historyButtonClicked" ,
174
174
"group" : " navigation@4" ,
175
- "when" : " view == roo-cline.SidebarProvider"
175
+ "when" : " view == pearai- roo-cline.SidebarProvider"
176
176
},
177
177
{
178
178
"command" : " roo-cline.popoutButtonClicked" ,
179
179
"group" : " navigation@5" ,
180
- "when" : " view == roo-cline.SidebarProvider"
180
+ "when" : " view == pearai- roo-cline.SidebarProvider"
181
181
},
182
182
{
183
183
"command" : " roo-cline.settingsButtonClicked" ,
184
184
"group" : " navigation@6" ,
185
- "when" : " view == roo-cline.SidebarProvider"
185
+ "when" : " view == pearai- roo-cline.SidebarProvider"
186
186
}
187
187
]
188
188
},
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export const GlobalFileNames = {
141
141
}
142
142
143
143
export class ClineProvider implements vscode . WebviewViewProvider {
144
- public static readonly sideBarId = "roo-cline.SidebarProvider" // used in package.json as the view's id. This value cannot be changed due to how vscode caches views based on their id, and updating the id would break existing instances of the extension.
144
+ public static readonly sideBarId = "pearai- roo-cline.SidebarProvider" // used in package.json as the view's id. This value cannot be changed due to how vscode caches views based on their id, and updating the id would break existing instances of the extension.
145
145
public static readonly tabPanelId = "roo-cline.TabPanelProvider"
146
146
private static activeInstances : Set < ClineProvider > = new Set ( )
147
147
private disposables : vscode . Disposable [ ] = [ ]
@@ -204,7 +204,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
204
204
205
205
// If no visible provider, try to show the sidebar view
206
206
if ( ! visibleProvider ) {
207
- await vscode . commands . executeCommand ( "roo-cline.SidebarProvider.focus" )
207
+ await vscode . commands . executeCommand ( "pearai- roo-cline.SidebarProvider.focus" )
208
208
// Wait briefly for the view to become visible
209
209
await delay ( 100 )
210
210
visibleProvider = ClineProvider . getVisibleInstance ( )
Original file line number Diff line number Diff line change @@ -274,7 +274,14 @@ export function activate(context: vscode.ExtensionContext) {
274
274
275
275
context . subscriptions . push (
276
276
vscode . commands . registerCommand ( "roo-cline.focus" , async ( ...args : any [ ] ) => {
277
- await vscode . commands . executeCommand ( "roo-cline.SidebarProvider.focus" )
277
+ try {
278
+ await vscode . commands . executeCommand ( "workbench.action.switchToPearAIIntegrationIconBar" , {
279
+ view : "agent" ,
280
+ } )
281
+ } catch ( error ) {
282
+ // Silently handle any errors that might occur when switching to the integration bar
283
+ }
284
+ await vscode . commands . executeCommand ( "pearai-roo-cline.SidebarProvider.focus" )
278
285
} ) ,
279
286
)
280
287
You can’t perform that action at this time.
0 commit comments