mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-17 08:50:12 +01:00
Add tunnel creation options to web api
This commit is contained in:
@@ -52,7 +52,7 @@ interface ITunnelProvider {
|
||||
}
|
||||
|
||||
interface ITunnelFactory {
|
||||
(tunnelOptions: ITunnelOptions, elevate?: boolean): Promise<ITunnel> | undefined;
|
||||
(tunnelOptions: ITunnelOptions, tunnelCreationOptions: TunnelCreationOptions): Promise<ITunnel> | undefined;
|
||||
}
|
||||
|
||||
interface ITunnelOptions {
|
||||
@@ -66,6 +66,13 @@ interface ITunnelOptions {
|
||||
label?: string;
|
||||
}
|
||||
|
||||
export interface TunnelCreationOptions {
|
||||
/**
|
||||
* True when the local operating system will require elevation to use the requested local port.
|
||||
*/
|
||||
elevationRequired?: boolean;
|
||||
}
|
||||
|
||||
interface ITunnel extends IDisposable {
|
||||
remoteAddress: { port: number, host: string };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user