mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
$setRemoteEnvironment-implementation requires nodejs
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user