提交 3aeaf695 编写于 作者: J Joao Moreno

propagate userenv to shared process

上级 093239c5
......@@ -684,7 +684,7 @@ export class CodeApplication extends Disposable {
this.historyMainService.onRecentlyOpenedChange(() => this.historyMainService.updateWindowsJumpList());
// Start shared process after a while
const sharedProcess = new RunOnceScheduler(() => this.sharedProcess.spawn(), 3000);
const sharedProcess = new RunOnceScheduler(() => getShellEnvironment().then(userEnv => this.sharedProcess.spawn(userEnv)), 3000);
sharedProcess.schedule();
this._register(sharedProcess);
}
......
......@@ -24,7 +24,7 @@ export class SharedProcess implements ISharedProcess {
constructor(
private readonly machineId: string,
private readonly userEnv: IProcessEnvironment,
private userEnv: IProcessEnvironment,
@IEnvironmentService private readonly environmentService: IEnvironmentService,
@ILifecycleService private readonly lifecycleService: ILifecycleService,
@IStateService private readonly stateService: IStateService,
......@@ -111,7 +111,8 @@ export class SharedProcess implements ISharedProcess {
});
}
spawn(): void {
spawn(userEnv: NodeJS.ProcessEnv): void {
this.userEnv = { ...this.userEnv, ...userEnv };
this.barrier.open();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册