Archived
1
0

Propagate full env to browser (#756)

* Propogate full env to browser

* Add support for setting $ITEM_URL

* Add serviceURL getter
This commit is contained in:
Anmol Sethi
2019-06-11 12:54:49 -04:00
committed by Asher
parent 362715bbeb
commit 02f62882b8
13 changed files with 95 additions and 37 deletions

View File

@ -28,12 +28,17 @@ class Product implements IProductConfiguration {
return this._dataFolderName;
}
public extensionsGallery = {
serviceUrl: global && global.process && global.process.env.SERVICE_URL
|| process.env.SERVICE_URL
|| "https://v1.extapi.coder.com",
// tslint:disable-next-line:no-any
} as any;
// tslint:disable-next-line:no-any
public extensionsGallery: any = {
get serviceUrl(): string {
return process.env.SERVICE_URL || "https://v1.extapi.coder.com";
},
get itemUrl(): string {
return process.env.ITEM_URL || "";
},
};
public extensionExecutionEnvironments = {
"wayou.vscode-todo-highlight": "worker",