Skip to content

Commit ff7c9b7

Browse files
committed
Lint fixes
1 parent 74991bd commit ff7c9b7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

apps/vscode-e2e/src/suite/modes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ suite("Roo Code Modes", function () {
1111
test("Should handle switching modes correctly", async () => {
1212
const modes: string[] = []
1313

14-
globalThis.api.on(RooCodeEventName.TaskModeSwitched, (_taskId, mode) => modes.push(mode))
14+
globalThis.api.on(RooCodeEventName.TaskModeSwitched, (_taskId: string, mode: string) => modes.push(mode))
1515

1616
const switchModesTaskId = await globalThis.api.startNewTask({
1717
configuration: { mode: "code", alwaysAllowModeSwitch: true, autoApprovalEnabled: true },

apps/vscode-e2e/src/suite/subtasks.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ suite.skip("Roo Code Subtasks", () => {
1010

1111
const messages: Record<string, ClineMessage[]> = {}
1212

13-
api.on(RooCodeEventName.Message, ({ taskId, message }) => {
13+
api.on(RooCodeEventName.Message, ({ taskId, message }: { taskId: string; message: ClineMessage }) => {
1414
if (message.type === "say" && message.partial === false) {
1515
messages[taskId] = messages[taskId] || []
1616
messages[taskId].push(message)
@@ -37,7 +37,7 @@ suite.skip("Roo Code Subtasks", () => {
3737
let spawnedTaskId: string | undefined = undefined
3838

3939
// Wait for the subtask to be spawned and then cancel it.
40-
api.on(RooCodeEventName.TaskSpawned, (_, childTaskId) => (spawnedTaskId = childTaskId))
40+
api.on(RooCodeEventName.TaskSpawned, (_: string, childTaskId: string) => (spawnedTaskId = childTaskId))
4141
await waitFor(() => !!spawnedTaskId)
4242
await sleep(1_000) // Give the task a chance to start and populate the history.
4343
await api.cancelCurrentTask()

apps/vscode-e2e/src/suite/task.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ suite("Roo Code Task", function () {
1313

1414
const messages: ClineMessage[] = []
1515

16-
api.on(RooCodeEventName.Message, ({ message }) => {
16+
api.on(RooCodeEventName.Message, ({ message }: { message: ClineMessage }) => {
1717
if (message.type === "say" && message.partial === false) {
1818
messages.push(message)
1919
}

apps/vscode-e2e/src/suite/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type WaitUntilAbortedOptions = WaitForOptions & {
4646

4747
export const waitUntilAborted = async ({ api, taskId, ...options }: WaitUntilAbortedOptions) => {
4848
const set = new Set<string>()
49-
api.on(RooCodeEventName.TaskAborted, (taskId) => set.add(taskId))
49+
api.on(RooCodeEventName.TaskAborted, (abortedTaskId: string) => set.add(abortedTaskId))
5050
await waitFor(() => set.has(taskId), options)
5151
}
5252

@@ -57,7 +57,7 @@ type WaitUntilCompletedOptions = WaitForOptions & {
5757

5858
export const waitUntilCompleted = async ({ api, taskId, ...options }: WaitUntilCompletedOptions) => {
5959
const set = new Set<string>()
60-
api.on(RooCodeEventName.TaskCompleted, (taskId) => set.add(taskId))
60+
api.on(RooCodeEventName.TaskCompleted, (completedTaskId: string) => set.add(completedTaskId))
6161
await waitFor(() => set.has(taskId), options)
6262
}
6363

0 commit comments

Comments
 (0)