@@ -8,6 +8,7 @@ import { createDecorator } from 'vs/platform/instantiation/common/instantiation'
88import type * as vscode from 'vscode' ;
99import { RemoteTunnel , TunnelOptions } from 'vs/platform/remote/common/tunnel' ;
1010import { IDisposable } from 'vs/base/common/lifecycle' ;
11+ import { Emitter } from 'vs/base/common/event' ;
1112
1213export interface TunnelDto {
1314 remoteAddress : { port : number , host : string } ;
@@ -32,13 +33,16 @@ export interface IExtHostTunnelService extends ExtHostTunnelServiceShape {
3233 readonly _serviceBrand : undefined ;
3334 openTunnel ( forward : TunnelOptions ) : Promise < vscode . Tunnel | undefined > ;
3435 getTunnels ( ) : Promise < vscode . TunnelDescription [ ] > ;
36+ onDidTunnelsChange : vscode . Event < void > ;
3537 setTunnelExtensionFunctions ( provider : vscode . RemoteAuthorityResolver | undefined ) : Promise < IDisposable > ;
3638}
3739
3840export const IExtHostTunnelService = createDecorator < IExtHostTunnelService > ( 'IExtHostTunnelService' ) ;
3941
4042export class ExtHostTunnelService implements IExtHostTunnelService {
4143 _serviceBrand : undefined ;
44+ onDidTunnelsChange : vscode . Event < void > = ( new Emitter < void > ( ) ) . event ;
45+
4246 async openTunnel ( forward : TunnelOptions ) : Promise < vscode . Tunnel | undefined > {
4347 return undefined ;
4448 }
@@ -54,5 +58,5 @@ export class ExtHostTunnelService implements IExtHostTunnelService {
5458 async setTunnelExtensionFunctions ( provider : vscode . RemoteAuthorityResolver | undefined ) : Promise < IDisposable > { return { dispose : ( ) => { } } ; }
5559 $forwardPort ( tunnelOptions : TunnelOptions ) : Promise < TunnelDto > | undefined { return undefined ; }
5660 async $closeTunnel ( remote : { host : string , port : number } ) : Promise < void > { }
57-
61+ async $onDidTunnelsChange ( ) : Promise < void > { }
5862}
0 commit comments