mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
add note that port mapping does not work for websockets
This commit is contained in:
parent
879e7636c2
commit
7a1af12064
5
src/vs/vscode.d.ts
vendored
5
src/vs/vscode.d.ts
vendored
|
@ -5763,8 +5763,11 @@ declare module 'vscode' {
|
|||
* 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
|
||||
* If a webview accesses localhost content, we recommend that you specify port mappings even if
|
||||
* the `webviewPort` and `extensionHostPort` ports are the same.
|
||||
*
|
||||
* *Note* that port mappings only work for `http` or `https` urls. Websocket urls (e.g. `ws://localhost:3000`)
|
||||
* cannot be mapped to another port.
|
||||
*/
|
||||
readonly portMapping?: ReadonlyArray<WebviewPortMapping>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue