diff --git a/src/extension.ts b/src/extension.ts index 795d87aa..5b80516a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -38,6 +38,9 @@ export function activate(context: ExtensionContext) { let rls_root = process.env.RLS_ROOT; window.setStatusBarMessage("RLS analysis: starting up"); + let outChannel = window.createOutputChannel('RLS-Standard err/out'); + + if (DEV_MODE) { if (rls_root) { serverOptions = {command: "cargo", args: ["run", "--release"], options: { cwd: rls_root } }; @@ -53,7 +56,16 @@ export function activate(context: ExtensionContext) { } else { childProcess = child_process.spawn("rls"); } - childProcess.stderr.on('data', data => {}); + childProcess.stderr.on('data', data => { + outChannel.appendLine("Error"); + outChannel.appendLine(data.toString()); + }); + + childProcess.stdout.on('data', data => { + outChannel.appendLine("Output"); + outChannel.appendLine(data.toString()); + }); + return childProcess; // Uses stdin/stdout for communication }