Fix output newlines

This commit is contained in:
adelphes
2017-06-14 15:57:17 +01:00
parent e76773e8e4
commit 09905eb85a

View File

@@ -8,6 +8,7 @@ const {
const crypto = require('crypto'); const crypto = require('crypto');
const dom = require('xmldom').DOMParser; const dom = require('xmldom').DOMParser;
const fs = require('fs'); const fs = require('fs');
const os = require('os');
const Long = require('long'); const Long = require('long');
const path = require('path'); const path = require('path');
const xpath = require('xpath'); const xpath = require('xpath');
@@ -103,7 +104,8 @@ class AndroidDebugSession extends DebugSession {
LOG(msg) { LOG(msg) {
D(msg); D(msg);
this.sendEvent(new OutputEvent(msg)); // VSCode no longer auto-newlines output
this.sendEvent(new OutputEvent(msg + os.EOL));
} }
WARN(msg) { WARN(msg) {