Skip to content

Add missing type on resolved options #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Emitter } from 'vs/base/common/event';
import { Disposable } from 'vs/base/common/lifecycle';
import { RemoteAuthorities } from 'vs/base/common/network';
import { URI } from 'vs/base/common/uri';
import { IRemoteAuthorityResolverService, IRemoteConnectionData, ResolvedAuthority, ResolverResult } from 'vs/platform/remote/common/remoteAuthorityResolver';
import { IRemoteAuthorityResolverService, IRemoteConnectionData, ResolvedAuthority, ResolvedOptions, ResolverResult } from 'vs/platform/remote/common/remoteAuthorityResolver';

export class RemoteAuthorityResolverService extends Disposable implements IRemoteAuthorityResolverService {

Expand Down Expand Up @@ -67,10 +67,10 @@ export class RemoteAuthorityResolverService extends Disposable implements IRemot
* Add VSCODE_PROXY_URI to the environment.
* @author coder
*/
const options = {}
let options: ResolvedOptions | undefined
if (this.proxyEndpointUrlTemplate) {
const proxyUrl = new URL(this.proxyEndpointUrlTemplate, window.location.href);
options.extensionHostEnv = { VSCODE_PROXY_URI: decodeURIComponent(proxyUrl.toString()) }
options = { extensionHostEnv: { VSCODE_PROXY_URI: decodeURIComponent(proxyUrl.toString()) }}
}
if (authority.indexOf(':') >= 0) {
const pieces = authority.split(':');
Expand Down