From 38e36fa97c0b89e6e3a5a6b16445915be39d4f36 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Sat, 2 Mar 2024 12:32:59 +0300 Subject: [PATCH] Fix compilation error on Ubuntu test ... whith is: Argument of type 'Thenable' is not assignable to parameter of type 'boolean | PromiseLike'. --- src/qbstaskprovider.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qbstaskprovider.ts b/src/qbstaskprovider.ts index 69fcb18..78d9f92 100644 --- a/src/qbstaskprovider.ts +++ b/src/qbstaskprovider.ts @@ -128,7 +128,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal { console.log('Start build task'); return new Promise(async (resolve) => { - const success = vscode.commands.executeCommand(QbsCommandKey.BuildProduct, this.definition?.products); + const success = vscode.commands.executeCommand(QbsCommandKey.BuildProduct, this.definition?.products); resolve(success); }).then((result) => { console.log('Complete build task with result: ' + result); @@ -147,7 +147,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal { console.log('Start clean task'); return new Promise(async (resolve) => { - const success = vscode.commands.executeCommand(QbsCommandKey.CleanProduct, this.definition?.products); + const success = vscode.commands.executeCommand(QbsCommandKey.CleanProduct, this.definition?.products); resolve(success); }).then((result) => { console.log('Complete clean task with result: ' + result); @@ -166,7 +166,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal { console.log('Start install task'); return new Promise(async (resolve) => { - const success = vscode.commands.executeCommand(QbsCommandKey.InstallProduct, this.definition?.products); + const success = vscode.commands.executeCommand(QbsCommandKey.InstallProduct, this.definition?.products); resolve(success); }).then((result) => { console.log('Complete install task with result: ' + result); @@ -188,7 +188,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal { console.log('Start rebuild task'); return new Promise(async (resolve) => { - const success = vscode.commands.executeCommand(QbsCommandKey.RebuildProduct, this.definition?.products); + const success = vscode.commands.executeCommand(QbsCommandKey.RebuildProduct, this.definition?.products); resolve(success); }).then((result) => { console.log('Complete rebuild task with result: ' + result); @@ -207,7 +207,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal { console.log('Start resolve task'); return new Promise(async (resolve) => { - const success = vscode.commands.executeCommand(QbsCommandKey.ResolveProject, this.definition?.products); + const success = vscode.commands.executeCommand(QbsCommandKey.ResolveProject, this.definition?.products); resolve(success); }).then((result) => { console.log('Complete resolve task with result: ' + result);