From 12885da33edc265f8dd3fc4bf3583dc82e7cf480 Mon Sep 17 00:00:00 2001 From: Yaner <26623948+yaner-here@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:04:13 +0000 Subject: [PATCH] Add stdout of compiler to OutputChannel --- src/compiler.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler.ts b/src/compiler.ts index 00a6a9d..976a5a2 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -153,6 +153,10 @@ export const compileFile = async (srcPath: string): Promise => { } let error = ''; + compiler.stdout.on('data', (data) => { + error += data; + }); + compiler.stderr.on('data', (data) => { error += data; });