Add API to get an array of tunnel descriptions

This commit is contained in:
Alex Ross
2020-01-20 12:30:02 +01:00
parent 089e1b7f4e
commit 40aa781ab8
6 changed files with 29 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ export interface Tunnel extends vscode.Disposable {
export interface IExtHostTunnelService extends ExtHostTunnelServiceShape {
readonly _serviceBrand: undefined;
openTunnel(forward: TunnelOptions): Promise<vscode.Tunnel | undefined>;
getTunnels(): Promise<vscode.TunnelDescription[]>;
setTunnelExtensionFunctions(provider: vscode.RemoteAuthorityResolver | undefined): Promise<IDisposable>;
}
@@ -41,6 +42,9 @@ export class ExtHostTunnelService implements IExtHostTunnelService {
async openTunnel(forward: TunnelOptions): Promise<vscode.Tunnel | undefined> {
return undefined;
}
async getTunnels(): Promise<vscode.TunnelDescription[]> {
return [];
}
async $findCandidatePorts(): Promise<{ host: string, port: number; detail: string; }[]> {
return [];
}