From 5a6c8c64f1b70ad2b50265b132cf0a8873701e00 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 2 Oct 2022 20:24:44 -0300 Subject: [PATCH] fix: `deno/tasks` expects no parameters (#722) --- client/src/lsp_extensions.ts | 7 +------ client/src/tasks.ts | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/client/src/lsp_extensions.ts b/client/src/lsp_extensions.ts index 55dd08de..2a5a5bb5 100644 --- a/client/src/lsp_extensions.ts +++ b/client/src/lsp_extensions.ts @@ -39,10 +39,6 @@ export const registryState = new NotificationType( "deno/registryState", ); -export interface TaskParams { - scope?: string; -} - export interface TaskRequestResponse { name: string; detail: string; @@ -50,8 +46,7 @@ export interface TaskRequestResponse { /** Requests any tasks from the language server that the language server is * aware of, which are defined in a Deno configuration file. */ -export const task = new RequestType< - TaskParams, +export const task = new RequestType0< TaskRequestResponse[] | undefined, void >( diff --git a/client/src/tasks.ts b/client/src/tasks.ts index b6d73cbf..05b95875 100644 --- a/client/src/tasks.ts +++ b/client/src/tasks.ts @@ -145,7 +145,7 @@ class DenoTaskProvider implements vscode.TaskProvider { ?.experimental?.denoConfigTasks; if (client && supportsConfigTasks) { try { - const configTasks = await client.sendRequest(taskReq, {}); + const configTasks = await client.sendRequest(taskReq); for (const workspaceFolder of vscode.workspace.workspaceFolders ?? []) { if (configTasks) { for (const { name, detail } of configTasks) {