Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Fix TSC object undefined compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
damieng committed Oct 2, 2018
1 parent 8150f76 commit 3901d0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/auto-languageclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ export default class AutoLanguageClient {
protected spawnChildNode(args: string[], options: cp.SpawnOptions = {}): cp.ChildProcess {
this.logger.debug(`starting child Node "${args.join(' ')}"`);
options.env = options.env || Object.create(process.env);
options.env.ELECTRON_RUN_AS_NODE = '1';
options.env.ELECTRON_NO_ATTACH_CONSOLE = '1';
if (options.env) {
options.env.ELECTRON_RUN_AS_NODE = '1';
options.env.ELECTRON_NO_ATTACH_CONSOLE = '1';
}
return cp.spawn(process.execPath, args, options);
}

Expand Down

0 comments on commit 3901d0f

Please sign in to comment.