mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 8b5ebbb1b8f6b2127bbbd551ac10cc080482d5b4 (#5041)
This commit is contained in:
31
src/vs/vscode.proposed.d.ts
vendored
31
src/vs/vscode.proposed.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user