@@ -43,7 +43,7 @@ declare module 'vscode' {
4343 label : string ;
4444 }
4545
46- export interface TunnelOptions {
46+ interface TunnelOptions {
4747 remoteAddress : { port : number ; host : string } ;
4848 // The desired local port. If this port can't be used, then another will be chosen.
4949 localAddressPort ?: number ;
@@ -56,7 +56,7 @@ declare module 'vscode' {
5656 protocol ?: string ;
5757 }
5858
59- export interface TunnelDescription {
59+ interface TunnelDescription {
6060 remoteAddress : { port : number ; host : string } ;
6161 //The complete local address(ex. localhost:1234)
6262 localAddress : { port : number ; host : string } | string ;
@@ -69,7 +69,7 @@ declare module 'vscode' {
6969 protocol ?: string ;
7070 }
7171
72- export interface Tunnel extends TunnelDescription {
72+ interface Tunnel extends TunnelDescription {
7373 // Implementers of Tunnel should fire onDidDispose when dispose is called.
7474 onDidDispose : Event < void > ;
7575 dispose ( ) : void | Thenable < void > ;
@@ -164,29 +164,6 @@ declare module 'vscode' {
164164 candidatePortSource ?: CandidatePortSource ;
165165 }
166166
167- export namespace workspace {
168- /**
169- * Forwards a port. If the current resolver implements RemoteAuthorityResolver:forwardPort then that will be used to make the tunnel.
170- * By default, openTunnel only support localhost; however, RemoteAuthorityResolver:tunnelFactory can be used to support other ips.
171- *
172- * @throws When run in an environment without a remote.
173- *
174- * @param tunnelOptions The `localPort` is a suggestion only. If that port is not available another will be chosen.
175- */
176- export function openTunnel ( tunnelOptions : TunnelOptions ) : Thenable < Tunnel > ;
177-
178- /**
179- * Gets an array of the currently available tunnels. This does not include environment tunnels, only tunnels that have been created by the user.
180- * Note that these are of type TunnelDescription and cannot be disposed.
181- */
182- // export let tunnels: Thenable<TunnelDescription[]>;
183-
184- /**
185- * Fired when the list of tunnels has changed.
186- */
187- export const onDidChangeTunnels : Event < void > ;
188- }
189-
190167 export interface ResourceLabelFormatter {
191168 scheme : string ;
192169 authority ?: string ;
0 commit comments