Skip to content

Commit

Permalink
Fix compilation error on Ubuntu test
Browse files Browse the repository at this point in the history
 ... whith is:

Argument of type 'Thenable<unknown>' is not assignable to parameter of type 'boolean | PromiseLike<boolean>'.
  • Loading branch information
denis-shienkov committed Mar 2, 2024
1 parent 72cc0ea commit 38e36fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/qbstaskprovider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal {

console.log('Start build task');
return new Promise<boolean>(async (resolve) => {
const success = vscode.commands.executeCommand(QbsCommandKey.BuildProduct, this.definition?.products);
const success = vscode.commands.executeCommand<boolean>(QbsCommandKey.BuildProduct, this.definition?.products);
resolve(success);
}).then((result) => {
console.log('Complete build task with result: ' + result);
Expand All @@ -147,7 +147,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal {

console.log('Start clean task');
return new Promise<boolean>(async (resolve) => {
const success = vscode.commands.executeCommand(QbsCommandKey.CleanProduct, this.definition?.products);
const success = vscode.commands.executeCommand<boolean>(QbsCommandKey.CleanProduct, this.definition?.products);
resolve(success);
}).then((result) => {
console.log('Complete clean task with result: ' + result);
Expand All @@ -166,7 +166,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal {

console.log('Start install task');
return new Promise<boolean>(async (resolve) => {
const success = vscode.commands.executeCommand(QbsCommandKey.InstallProduct, this.definition?.products);
const success = vscode.commands.executeCommand<boolean>(QbsCommandKey.InstallProduct, this.definition?.products);
resolve(success);
}).then((result) => {
console.log('Complete install task with result: ' + result);
Expand All @@ -188,7 +188,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal {

console.log('Start rebuild task');
return new Promise<boolean>(async (resolve) => {
const success = vscode.commands.executeCommand(QbsCommandKey.RebuildProduct, this.definition?.products);
const success = vscode.commands.executeCommand<boolean>(QbsCommandKey.RebuildProduct, this.definition?.products);
resolve(success);
}).then((result) => {
console.log('Complete rebuild task with result: ' + result);
Expand All @@ -207,7 +207,7 @@ class QbsTaskTerminal implements vscode.Pseudoterminal {

console.log('Start resolve task');
return new Promise<boolean>(async (resolve) => {
const success = vscode.commands.executeCommand(QbsCommandKey.ResolveProject, this.definition?.products);
const success = vscode.commands.executeCommand<boolean>(QbsCommandKey.ResolveProject, this.definition?.products);
resolve(success);
}).then((result) => {
console.log('Complete resolve task with result: ' + result);
Expand Down

0 comments on commit 38e36fa

Please sign in to comment.