Skip to content

Commit

Permalink
web - align API with what we expect
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Aug 28, 2019
1 parent 902da82 commit f682e3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export class RemoteAgentService extends AbstractRemoteAgentService implements IR
super(environmentService);

this.socketFactory = new BrowserSocketFactory(webSocketFactory);
this._connection = this._register(new RemoteAgentConnection(environmentService.configuration.remoteAuthority!, productService.commit, this.socketFactory, remoteAuthorityResolverService, signService, logService));
const remoteAuthority = environmentService.configuration.remoteAuthority;
if (remoteAuthority) {
this._connection = this._register(new RemoteAgentConnection(remoteAuthority, productService.commit, this.socketFactory, remoteAuthorityResolverService, signService, logService));
}
}

getConnection(): IRemoteAgentConnection | null {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/workbench.web.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface IWorkbenchConstructionOptions {
* Experimental: the remote authority is the IP:PORT from where the workbench is served
* from. It is for example being used for the websocket connections as address.
*/
remoteAuthority: string;
remoteAuthority?: string;

/**
* The connection token to send to the server.
Expand Down

0 comments on commit f682e3b

Please sign in to comment.