mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 011858832762aaff245b2336fb1c38166e7a10fb (#4663)
This commit is contained in:
31
src/vs/vscode.proposed.d.ts
vendored
31
src/vs/vscode.proposed.d.ts
vendored
@@ -1378,4 +1378,35 @@ declare module 'vscode' {
|
||||
group?: string;
|
||||
}
|
||||
//#endregion
|
||||
|
||||
//#region Webview Port mapping— mjbvz
|
||||
/**
|
||||
* Defines a port mapping used for localhost inside the webview.
|
||||
*/
|
||||
export interface WebviewPortMapping {
|
||||
/**
|
||||
* Localhost port to remap inside the webview.
|
||||
*/
|
||||
readonly port: number;
|
||||
|
||||
/**
|
||||
* Destination port. The `port` is resolved to this port.
|
||||
*/
|
||||
readonly resolvedPort: number;
|
||||
}
|
||||
|
||||
export interface WebviewOptions {
|
||||
/**
|
||||
* Mappings of localhost ports used inside the webview.
|
||||
*
|
||||
* Port mapping allow webviews to transparently define how localhost ports are resolved. This can be used
|
||||
* to allow using a static localhost port inside the webview that is resolved to random port that a service is
|
||||
* running on.
|
||||
*
|
||||
* If a webview accesses localhost content, we recomend that you specify port mappings even if
|
||||
* the `from` and `to` ports are the same.
|
||||
*/
|
||||
readonly portMapping?: ReadonlyArray<WebviewPortMapping>;
|
||||
}
|
||||
//#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user