Archived
1
0

Get shared process socket path to the environment service

This commit is contained in:
Asher
2019-01-22 12:27:59 -06:00
committed by Kyle Carberry
parent 4eb9f87217
commit 36a2d26148
6 changed files with 51 additions and 35 deletions

View File

@ -42,12 +42,17 @@ export abstract class Client {
private tasks: string[] = [];
private finishedTaskCount = 0;
private readonly loadTime: Time;
private sharedProcessDataPromise: Promise<ISharedProcessData>;
public constructor() {
logger.info("Loading IDE");
this.loadTime = time(2500);
this.sharedProcessDataPromise = new Promise((resolve): void => {
client.onSharedProcessActive(resolve);
});
const overlay = document.getElementById("overlay");
const logo = document.getElementById("logo");
const msgElement = overlay
@ -168,10 +173,20 @@ export abstract class Client {
return client.initData;
}
/**
* An event that fires every time the shared process (re-)starts.
*/
public get onSharedProcessActive(): Event<ISharedProcessData> {
return client.onSharedProcessActive;
}
/**
* A promise that resolves with *initial* shared process data.
*/
public get sharedProcessData(): Promise<ISharedProcessData> {
return this.sharedProcessDataPromise;
}
/**
* Initialize the IDE.
*/