First stop towards compile/verify

This commit is contained in:
Christian Weichel
2019-05-06 19:58:36 +02:00
parent c48d80b137
commit cc79d53dc4
12 changed files with 145 additions and 31 deletions

View File

@@ -84,6 +84,24 @@ export class CoreClientProviderImpl implements CoreClientProvider {
updateResp.on('end', resolve);
});
}
// {
// const installBuiltinPkgReq = new PlatformInstallReq();
// installBuiltinPkgReq.setInstance(instance);
// installBuiltinPkgReq.setPlatformPackage("builtin");
// const resp = client.platformInstall(installBuiltinPkgReq);
// resp.on('data', (r: PlatformInstallResp) => {
// const prog = r.getProgress();
// if (prog) {
// console.info(`downloading ${prog.getFile()}: ${prog.getCompleted()}%`)
// }
// });
// await new Promise<void>((resolve, reject) => {
// resp.on('end', resolve);
// resp.on('error', reject);
// });
// }
// TODO: revisit this!!!
// `updateResp.on('data'` is called only when running, for instance, `compile`. It does not run eagerly.
// await new Promise<void>((resolve, reject) => {