From 161073b23fdfb62382a84f0c19550be1c2def78c Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 5 Apr 2018 11:33:12 +0200 Subject: [PATCH] use cp.fork --- build/gulpfile.editor.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build/gulpfile.editor.js b/build/gulpfile.editor.js index 6941813d22d..fe8144693be 100644 --- a/build/gulpfile.editor.js +++ b/build/gulpfile.editor.js @@ -244,14 +244,15 @@ function createTscCompileTask(watch) { const createReporter = require('./lib/reporter').createReporter; return new Promise((resolve, reject) => { - const args = ['./node_modules/.bin/tsc', '-p', './src/tsconfig.monaco.json', '--noEmit']; + const args = ['-p', './src/tsconfig.monaco.json', '--noEmit']; if (watch) { args.push('-w'); } - const child = cp.spawn(`node`, args, { + const child = cp.fork('./node_modules/.bin/tsc', args, { cwd: path.join(__dirname, '..'), - // stdio: [null, 'pipe', 'inherit'] + silent: true }); + let errors = []; let reporter = createReporter(); let report; @@ -274,10 +275,8 @@ function createTscCompileTask(watch) { // e.g. src/vs/base/common/strings.ts(663,5): error TS2322: Type '1234' is not assignable to type 'string'. let fullpath = path.join(root, match[1]); let message = match[3]; - // @ts-ignore reporter(fullpath + message); } else { - // @ts-ignore reporter(str); } } -- GitLab