diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 49361568195cef7e56f002e912b633c1e0eaa04d..f69f4455d6d2fb7c89e9c3414dc22cbcb95fee6b 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -10,6 +10,11 @@ "command": "./node_modules/.bin/gulp" }, "isShellCommand": true, + "options": { + "env": { + "VSCODE_BUILD_QUIET": "1" + } + }, "tasks": [ { "taskName": "watch", @@ -20,6 +25,7 @@ "isWatching": true, "problemMatcher": { "owner": "typescript", + "applyTo": "closedDocuments", "fileLocation": [ "absolute" ], diff --git a/build/gulpfile.common.js b/build/gulpfile.common.js index 50028ff74a1bca961cff969d5715c5a60dcf62d6..34bc3043e7ca0edbb38cda5a5f2be2a8451a5284 100644 --- a/build/gulpfile.common.js +++ b/build/gulpfile.common.js @@ -17,6 +17,8 @@ var util = require('./lib/util'); var i18n = require('./lib/i18n'); var gulpUtil = require('gulp-util'); +var quiet = !!process.env['VSCODE_BUILD_QUIET']; + function log(prefix, message) { gulpUtil.log(gulpUtil.colors.cyan('[' + prefix + ']'), message); } @@ -27,7 +29,7 @@ var commit = util.getVersion(root); var tsOptions = { target: 'ES5', module: 'amd', - verbose: true, + verbose: !quiet, preserveConstEnums: true, experimentalDecorators: true, sourceMap: true,