Skip to main content

Interface: WebviewOptions

Defined in: packages/extension-api/src/extension-api.d.ts:1910

Content settings for a webview.

Properties

localResourceRoots?

readonly optional localResourceRoots: readonly Uri[]

Defined in: packages/extension-api/src/extension-api.d.ts:1918

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.