Skip to main content

Interface: WebviewOptions

Content settings for a webview.

Properties

localResourceRoots?

optional readonly localResourceRoots: readonly Uri[]

Root paths from which the webview can load local (filesystem) resources using uris from asWebviewUri

Default to the root folders of the current workspace plus the extension's install directory.

Pass in an empty array to disallow access to any local resources.

Source

packages/extension-api/src/extension-api.d.ts:1357