New webviews should allow svgs by default

Fixes #45476
This commit is contained in:
Matt Bierner
2018-03-13 12:06:08 -07:00
parent 68c78176af
commit e1b548f072

View File

@@ -159,6 +159,7 @@ export class WebviewEditor extends BaseWebviewEditor {
input.claimWebview(this);
webview.options = {
allowScripts: input.options.enableScripts,
allowSvgs: true,
enableWrappedPostMessage: true,
useSameOriginForRoot: false,
localResourceRoots: (input && input.options.localResourceRoots) || this._contextService.getWorkspace().folders.map(x => x.uri)