Merge from vscode 8b5ebbb1b8f6b2127bbbd551ac10cc080482d5b4 (#5041)

This commit is contained in:
Anthony Dresser
2019-04-15 20:37:22 -07:00
committed by GitHub
parent dcdbc95ae7
commit a5bc65fbfb
48 changed files with 495 additions and 294 deletions

View File

@@ -1360,35 +1360,4 @@ 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 `port` and `resolvedPort` ports are the same.
*/
readonly portMapping?: ReadonlyArray<WebviewPortMapping>;
}
//#endregion
}