From 7077b6b7f94b23d01e5bbebcf858709171a8ab94 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Thu, 5 Sep 2019 15:20:08 +0200 Subject: [PATCH] Fix very annoying gulp task error that always takes you to tasks output Even when you click dismiss --- extensions/gulp/src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/gulp/src/main.ts b/extensions/gulp/src/main.ts index b260f0e49b8..20d824c25ed 100644 --- a/extensions/gulp/src/main.ts +++ b/extensions/gulp/src/main.ts @@ -62,8 +62,10 @@ function getOutputChannel(): vscode.OutputChannel { function showError() { vscode.window.showWarningMessage(localize('gulpTaskDetectError', 'Problem finding gulp tasks. See the output for more information.'), - localize('gulpShowOutput', 'Go to output')).then(() => { - _channel.show(true); + localize('gulpShowOutput', 'Go to output')).then((choice) => { + if (choice !== undefined) { + _channel.show(true); + } }); } -- GitLab