mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Give remote resolvers a way to set environment variables in the remote EH
Fix #77234, for microsoft/vscode-remote-release#16
This commit is contained in:
@@ -662,12 +662,24 @@ export class ExtHostExtensionService implements ExtHostExtensionServiceShape {
|
||||
|
||||
try {
|
||||
const result = await resolver.resolve(remoteAuthority, { resolveAttempt });
|
||||
|
||||
// Support the old resolver interface, TODO remove after awhile
|
||||
const authority = typeof (<any>result).host === 'string' ?
|
||||
{
|
||||
authority: remoteAuthority,
|
||||
host: (<any>result).host,
|
||||
port: (<any>result).port
|
||||
} :
|
||||
{
|
||||
authority: remoteAuthority,
|
||||
host: result.authority.host,
|
||||
port: result.authority.port
|
||||
};
|
||||
return {
|
||||
type: 'ok',
|
||||
value: {
|
||||
authority: remoteAuthority,
|
||||
host: result.host,
|
||||
port: result.port,
|
||||
authority,
|
||||
options: result.options
|
||||
}
|
||||
};
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user