Fix task close=false

Fixes #126352
This commit is contained in:
Alex Ross 2021-06-15 13:20:11 +02:00
parent 9821fc89ae
commit 94ff9bf2f5
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840

View file

@ -1169,7 +1169,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
let options = await this.resolveOptions(resolver, task.command.options);
const presentationOptions = task.command.presentation;
let waitOnExit: boolean | string = presentationOptions?.close ? !presentationOptions.close : false;
let waitOnExit: boolean | string = (presentationOptions?.close !== undefined) ? !presentationOptions.close : true;
if (!presentationOptions) {
throw new Error('Task presentation options should not be undefined here.');
}