Introduce WebviewOptions.forms

Fixes #132157
This commit is contained in:
Matt Bierner
2021-09-02 13:24:31 -07:00
parent bad6e9309b
commit 0e52275271
10 changed files with 34 additions and 2 deletions

View File

@@ -194,6 +194,7 @@ export function serializeWebviewOptions(
return {
enableCommandUris: options.enableCommandUris,
enableScripts: options.enableScripts,
enableForms: options.enableForms,
portMapping: options.portMapping,
localResourceRoots: options.localResourceRoots || getDefaultLocalResourceRoots(extension, workspace)
};
@@ -203,6 +204,7 @@ export function reviveOptions(options: extHostProtocol.IWebviewOptions): vscode.
return {
enableCommandUris: options.enableCommandUris,
enableScripts: options.enableScripts,
enableForms: options.enableForms,
portMapping: options.portMapping,
localResourceRoots: options.localResourceRoots?.map(components => URI.from(components)),
};