ReadonlycspThe source a content security policy has to allow for this webview.
Rewrites a path inside the extension into a uri the content may load.
Takes a path rather than a uri so nothing above the port has to construct one — building a uri is exactly the sort of thing only the platform can do correctly for remote and virtual file systems.
Fires when this incarnation goes away, typically because the view was hidden.
Subscribes to raw messages from the content.
Sends a raw message to the content.
Replaces the rendered HTML.
One incarnation of a webview contributed to a view container.
A view is not a single long-lived object: hiding it tears the webview down, and showing it again builds a new one and asks the provider to fill it in afresh.
onDidDisposemarks the end of this incarnation, which is what makes per-incarnation state — an RPC channel, message subscriptions, in-flight requests — releasable at the right moment rather than at shutdown.