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); + } }); }