mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-20 00:11:18 +00:00
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import * as assert from "assert"
|
|
import * as vscode from "vscode"
|
|
|
|
import { setDefaultSuiteTimeout } from "./test-utils"
|
|
|
|
suite("Roo Code Extension", function () {
|
|
setDefaultSuiteTimeout(this)
|
|
|
|
test("Commands should be registered", async () => {
|
|
const expectedCommands = [
|
|
"SidebarProvider.open",
|
|
"SidebarProvider.focus",
|
|
"SidebarProvider.resetViewLocation",
|
|
"SidebarProvider.toggleVisibility",
|
|
"SidebarProvider.removeView",
|
|
"activationCompleted",
|
|
"plusButtonClicked",
|
|
"popoutButtonClicked",
|
|
"openInNewTab",
|
|
"settingsButtonClicked",
|
|
"historyButtonClicked",
|
|
"newTask",
|
|
"setCustomStoragePath",
|
|
"focusInput",
|
|
"acceptInput",
|
|
"explainCode",
|
|
"fixCode",
|
|
"improveCode",
|
|
"addToContext",
|
|
"terminalAddToContext",
|
|
"terminalFixCommand",
|
|
"terminalExplainCommand",
|
|
]
|
|
|
|
const commands = new Set((await vscode.commands.getCommands(true)).filter((cmd) => cmd.startsWith("roo-cline")))
|
|
|
|
for (const command of expectedCommands) {
|
|
assert.ok(commands.has(`roo-cline.${command}`), `Command ${command} should be registered`)
|
|
}
|
|
})
|
|
})
|