This commit is contained in:
Rob DeLine
2019-06-12 12:49:58 -07:00
parent 33ba72fef9
commit b799118b39

View File

@@ -92,7 +92,8 @@ export class MainThreadEditorInsets implements MainThreadEditorInsetsShape {
allowSvgs: false,
extension: { id: extensionId, location: URI.revive(extensionLocation) }
}, {
allowScripts: options.enableScripts
allowScripts: options.enableScripts,
localResourceRoots: options.localResourceRoots ? options.localResourceRoots.map(uri => URI.revive(uri)) : undefined
});
const webviewZone = new EditorWebviewZone(editor, range, webview);