Add tunnel list changed event API

This commit is contained in:
Alex Ross
2020-01-20 14:40:51 +01:00
parent 7cfac76c1d
commit 017aef63b9
6 changed files with 22 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ export class MainThreadTunnelService extends Disposable implements MainThreadTun
) {
super();
this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostTunnelService);
this._register(tunnelService.onTunnelOpened(() => this._proxy.$onDidTunnelsChange()));
this._register(tunnelService.onTunnelClosed(() => this._proxy.$onDidTunnelsChange()));
}
async $openTunnel(tunnelOptions: TunnelOptions): Promise<TunnelDto | undefined> {