Skip to main content

Interface: WebviewOptions

Content settings for a webview.

Properties

localResourceRoots?

readonly optional 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.

Defined in

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