Skip to content

Commit 7077aee

Browse files
committed
Address review comments
1 parent e8ad2ec commit 7077aee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/shared/src/ipc/protocol.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ export function buildApiHook<
182182
export function buildApiHook(
183183
api: Record<string, { kind: string; method: string }>,
184184
ipc: {
185-
request: (def: { method: string }, params: unknown) => Promise<unknown>;
186-
command: (def: { method: string }, params: unknown) => void;
185+
request: (def: { method: string }, params?: unknown) => Promise<unknown>;
186+
command: (def: { method: string }, params?: unknown) => void;
187187
onNotification: (
188188
def: { method: string },
189189
cb: (data: unknown) => void,

src/webviews/tasks/tasksPanelProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export class TasksPanelProvider
468468
try {
469469
const tasks = await this.fetchTasks();
470470
if (tasks !== null) {
471-
this.notify(TasksApi.tasksUpdated, [...tasks]);
471+
this.notify(TasksApi.tasksUpdated, tasks);
472472
}
473473
} catch (err) {
474474
this.logger.warn("Failed to refresh tasks after action", err);

0 commit comments

Comments
 (0)