$setRemoteEnvironment-implementation requires nodejs

This commit is contained in:
Johannes Rieken
2019-08-08 19:34:32 +02:00
parent 9ac2fd8adc
commit 24b3d9479f
2 changed files with 16 additions and 14 deletions

View File

@@ -732,20 +732,7 @@ export abstract class AbstractExtHostExtensionService implements ExtHostExtensio
return buff;
}
public async $setRemoteEnvironment(env: { [key: string]: string | null }): Promise<void> {
if (!this._initData.remote.isRemote) {
return;
}
for (const key in env) {
const value = env[key];
if (value === null) {
delete process.env[key];
} else {
process.env[key] = value;
}
}
}
public abstract async $setRemoteEnvironment(env: { [key: string]: string | null }): Promise<void>;
}