Re-enabled command line service tests (#4387)

This commit is contained in:
David Shiflet
2019-03-11 19:31:11 -04:00
committed by GitHub
parent 9867d88067
commit b44d2b1bb3
3 changed files with 8 additions and 14 deletions

View File

@@ -36,7 +36,9 @@ export class CommandLineService implements ICommandLineProcessing {
ipc.on('ads:processCommandLine', (event: any, args: ParsedArgs) => this.onLaunched(args));
}
// we only get the ipc from main during window reuse
this.onLaunched(_environmentService.args);
if (_environmentService) {
this.onLaunched(_environmentService.args);
}
}
private onLaunched(args: ParsedArgs)