Make worker ExtHostTunnelService and remove dependency in ExtHostExtensionService

This commit is contained in:
Alex Ross
2019-12-13 09:06:00 +01:00
parent 0181e95bb9
commit 44cf9c9144
8 changed files with 24 additions and 23 deletions

View File

@@ -22,7 +22,16 @@ export interface TunnelDto {
export interface IExtHostTunnelService extends ExtHostTunnelServiceShape {
readonly _serviceBrand: undefined;
makeTunnel(forward: TunnelOptions): Promise<vscode.Tunnel | undefined>;
addDetected(tunnels: { remote: { port: number, host: string }, localAddress: string }[] | undefined): Promise<void>;
}
export const IExtHostTunnelService = createDecorator<IExtHostTunnelService>('IExtHostTunnelService');
export class ExtHostTunnelService implements IExtHostTunnelService {
_serviceBrand: undefined;
async makeTunnel(forward: TunnelOptions): Promise<vscode.Tunnel | undefined> {
return undefined;
}
async $findCandidatePorts(): Promise<{ port: number; detail: string; }[]> {
return [];
}
}