Skip to content

Commit 7d5dd40

Browse files
committed
Merge branch 'main' into feat/3676-mcp-reload
2 parents e8f99e2 + e86884c commit 7d5dd40

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+593
-299
lines changed

.changeset/clean-taxis-feel.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Add support for `gemini-2.5-flash-preview-05-20` on the Vertex provider
6+
Add support for `gemini-2.5-flash-preview-05-20:thinking` on the Vertex provider

.changeset/four-emus-invite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Add a UI indicator while the context is condensing

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ mock/
1313

1414
# Builds
1515
bin/
16-
roo-cline-*.vsix
16+
*.vsix
1717

1818
# Local prompts and rules
1919
/local-prompts

e2e/package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"build": "rimraf out && tsc -p tsconfig.json",
1111
"vscode-test": "cd .. && npm run vscode-test"
1212
},
13-
"dependencies": {},
1413
"devDependencies": {
14+
"@roo-code/types": "^1.12.0",
1515
"@types/mocha": "^10.0.10",
1616
"@vscode/test-cli": "^0.0.10",
1717
"@vscode/test-electron": "^2.4.0",

e2e/src/suite/extension.test.ts

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,47 @@
11
import * as assert from "assert"
22
import * as vscode from "vscode"
33

4+
import { Package } from "@roo-code/types"
5+
46
suite("Roo Code Extension", () => {
57
test("Commands should be registered", async () => {
68
const expectedCommands = [
7-
"roo-cline.plusButtonClicked",
8-
"roo-cline.mcpButtonClicked",
9-
"roo-cline.historyButtonClicked",
10-
"roo-cline.popoutButtonClicked",
11-
"roo-cline.settingsButtonClicked",
12-
"roo-cline.openInNewTab",
13-
"roo-cline.explainCode",
14-
"roo-cline.fixCode",
15-
"roo-cline.improveCode",
9+
"SidebarProvider.open",
10+
"SidebarProvider.focus",
11+
"SidebarProvider.resetViewLocation",
12+
"SidebarProvider.toggleVisibility",
13+
"SidebarProvider.removeView",
14+
"activationCompleted",
15+
"plusButtonClicked",
16+
"mcpButtonClicked",
17+
"promptsButtonClicked",
18+
"popoutButtonClicked",
19+
"openInNewTab",
20+
"settingsButtonClicked",
21+
"historyButtonClicked",
22+
"showHumanRelayDialog",
23+
"registerHumanRelayCallback",
24+
"unregisterHumanRelayCallback",
25+
"handleHumanRelayResponse",
26+
"newTask",
27+
"setCustomStoragePath",
28+
"focusInput",
29+
"acceptInput",
30+
"explainCode",
31+
"fixCode",
32+
"improveCode",
33+
"addToContext",
34+
"terminalAddToContext",
35+
"terminalFixCommand",
36+
"terminalExplainCommand",
1637
]
1738

18-
const commands = await vscode.commands.getCommands(true)
39+
const commands = new Set(
40+
(await vscode.commands.getCommands(true)).filter((cmd) => cmd.startsWith(Package.name)),
41+
)
1942

20-
for (const cmd of expectedCommands) {
21-
assert.ok(commands.includes(cmd), `Command ${cmd} should be registered`)
43+
for (const command of expectedCommands) {
44+
assert.ok(commands.has(`${Package.name}.${command}`), `Command ${command} should be registered`)
2245
}
2346
})
2447
})

e2e/src/suite/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Mocha from "mocha"
33
import { glob } from "glob"
44
import * as vscode from "vscode"
55

6-
import type { RooCodeAPI } from "../../../src/exports/roo-code"
6+
import { type RooCodeAPI, Package } from "@roo-code/types"
77

88
import { waitFor } from "./utils"
99

@@ -12,7 +12,7 @@ declare global {
1212
}
1313

1414
export async function run() {
15-
const extension = vscode.extensions.getExtension<RooCodeAPI>("RooVeterinaryInc.roo-cline")
15+
const extension = vscode.extensions.getExtension<RooCodeAPI>(`${Package.publisher}.${Package.name}`)
1616

1717
if (!extension) {
1818
throw new Error("Extension not found")
@@ -26,7 +26,7 @@ export async function run() {
2626
openRouterModelId: "google/gemini-2.0-flash-001",
2727
})
2828

29-
await vscode.commands.executeCommand("roo-cline.SidebarProvider.focus")
29+
await vscode.commands.executeCommand(`${Package.name}.SidebarProvider.focus`)
3030
await waitFor(() => api.isReady())
3131

3232
// Expose the API to the tests.

e2e/src/suite/modes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as assert from "assert"
22

3-
import type { ClineMessage } from "../../../src/exports/roo-code"
3+
import type { ClineMessage } from "@roo-code/types"
44

55
import { waitUntilCompleted } from "./utils"
66

e2e/src/suite/subtasks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as assert from "assert"
22

3-
import type { ClineMessage } from "../../../src/exports/roo-code"
3+
import type { ClineMessage } from "@roo-code/types"
44

55
import { sleep, waitFor, waitUntilCompleted } from "./utils"
66

e2e/src/suite/task.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as assert from "assert"
22

3-
import type { ClineMessage } from "../../../src/exports/roo-code"
3+
import type { ClineMessage } from "@roo-code/types"
44

55
import { waitUntilCompleted } from "./utils"
66

0 commit comments

Comments
 (0)