--verbose tweaks

This commit is contained in:
Benjamin Pasero
2016-09-23 12:15:23 +02:00
parent 6e7aa1bf86
commit 5874111ef2
4 changed files with 12 additions and 5 deletions

View File

@@ -41,12 +41,18 @@ export function main(argv: string[]): TPromise<void> {
'VSCODE_CLI': '1',
'ELECTRON_NO_ATTACH_CONSOLE': '1'
});
delete env['ELECTRON_RUN_AS_NODE'];
let options = {
if (args.verbose) {
env['ELECTRON_ENABLE_LOGGING'] = '1';
}
const options = {
detached: true,
env,
};
if (!args.verbose) {
options['stdio'] = 'ignore';
}