提交 f682e3bc 编写于 作者: B Benjamin Pasero

web - align API with what we expect

上级 902da828
......@@ -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 {
......
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册