Skip to content

Commit 00256ff

Browse files
committed
Changed webview name
1 parent cd89f32 commit 00256ff

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"pearai-roo-cline": [
6464
{
6565
"type": "webview",
66-
"id": "roo-cline.SidebarProvider",
66+
"id": "pearai-roo-cline.SidebarProvider",
6767
"name": ""
6868
}
6969
]
@@ -157,32 +157,32 @@
157157
{
158158
"command": "roo-cline.plusButtonClicked",
159159
"group": "navigation@1",
160-
"when": "view == roo-cline.SidebarProvider"
160+
"when": "view == pearai-roo-cline.SidebarProvider"
161161
},
162162
{
163163
"command": "roo-cline.promptsButtonClicked",
164164
"group": "navigation@2",
165-
"when": "view == roo-cline.SidebarProvider"
165+
"when": "view == pearai-roo-cline.SidebarProvider"
166166
},
167167
{
168168
"command": "roo-cline.mcpButtonClicked",
169169
"group": "navigation@3",
170-
"when": "view == roo-cline.SidebarProvider"
170+
"when": "view == pearai-roo-cline.SidebarProvider"
171171
},
172172
{
173173
"command": "roo-cline.historyButtonClicked",
174174
"group": "navigation@4",
175-
"when": "view == roo-cline.SidebarProvider"
175+
"when": "view == pearai-roo-cline.SidebarProvider"
176176
},
177177
{
178178
"command": "roo-cline.popoutButtonClicked",
179179
"group": "navigation@5",
180-
"when": "view == roo-cline.SidebarProvider"
180+
"when": "view == pearai-roo-cline.SidebarProvider"
181181
},
182182
{
183183
"command": "roo-cline.settingsButtonClicked",
184184
"group": "navigation@6",
185-
"when": "view == roo-cline.SidebarProvider"
185+
"when": "view == pearai-roo-cline.SidebarProvider"
186186
}
187187
]
188188
},

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const GlobalFileNames = {
141141
}
142142

143143
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.
145145
public static readonly tabPanelId = "roo-cline.TabPanelProvider"
146146
private static activeInstances: Set<ClineProvider> = new Set()
147147
private disposables: vscode.Disposable[] = []
@@ -204,7 +204,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
204204

205205
// If no visible provider, try to show the sidebar view
206206
if (!visibleProvider) {
207-
await vscode.commands.executeCommand("roo-cline.SidebarProvider.focus")
207+
await vscode.commands.executeCommand("pearai-roo-cline.SidebarProvider.focus")
208208
// Wait briefly for the view to become visible
209209
await delay(100)
210210
visibleProvider = ClineProvider.getVisibleInstance()

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export function activate(context: vscode.ExtensionContext) {
274274

275275
context.subscriptions.push(
276276
vscode.commands.registerCommand("roo-cline.focus", async (...args: any[]) => {
277-
await vscode.commands.executeCommand("roo-cline.SidebarProvider.focus")
277+
await vscode.commands.executeCommand("pearai-roo-cline.SidebarProvider.focus")
278278
}),
279279
)
280280

src/shared/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,6 @@ export const unboundModels = {
623623

624624
// CHANGE AS NEEDED FOR TESTING
625625
// PROD:
626-
export const PEARAI_URL = "https://stingray-app-gb2an.ondigitalocean.app/pearai-server-api2/integrations/cline"
626+
// export const PEARAI_URL = "https://stingray-app-gb2an.ondigitalocean.app/pearai-server-api2/integrations/cline"
627627
// DEV:
628-
// export const PEARAI_URL = "http://localhost:8000/integrations/cline"
628+
export const PEARAI_URL = "http://localhost:8000/integrations/cline"

src/test/extension.test.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ suite("Roo Code Extension Test Suite", () => {
135135

136136
test("Views should be registered", () => {
137137
const view = vscode.window.createWebviewPanel(
138-
"roo-cline.SidebarProvider",
138+
"pearai-roo-cline.SidebarProvider",
139139
"Roo Code",
140140
vscode.ViewColumn.One,
141141
{},
@@ -184,12 +184,17 @@ suite("Roo Code Extension Test Suite", () => {
184184

185185
// Create webview panel with development options
186186
const extensionUri = extension.extensionUri
187-
const panel = vscode.window.createWebviewPanel("roo-cline.SidebarProvider", "Roo Code", vscode.ViewColumn.One, {
188-
enableScripts: true,
189-
enableCommandUris: true,
190-
retainContextWhenHidden: true,
191-
localResourceRoots: [extensionUri],
192-
})
187+
const panel = vscode.window.createWebviewPanel(
188+
"pearai-roo-cline.SidebarProvider",
189+
"Roo Code",
190+
vscode.ViewColumn.One,
191+
{
192+
enableScripts: true,
193+
enableCommandUris: true,
194+
retainContextWhenHidden: true,
195+
localResourceRoots: [extensionUri],
196+
},
197+
)
193198

194199
try {
195200
// Initialize webview with development context

0 commit comments

Comments
 (0)