Skip to content

Commit

Permalink
Make sure we also persist webview content options
Browse files Browse the repository at this point in the history
Fixes #78203
  • Loading branch information
mjbvz committed Aug 12, 2019
1 parent e102500 commit 231da46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class WebviewEditorInputFactory implements IEditorInputFactory {
const data: SerializedWebview = {
viewType: input.viewType,
title: input.getName(),
options: input.webview.options,
options: { ...input.webview.options, ...input.webview.contentOptions },
extensionLocation: input.extension ? input.extension.location : undefined,
extensionId: input.extension && input.extension.id ? input.extension.id.value : undefined,
state: input.webview.state,
Expand Down Expand Up @@ -118,4 +118,4 @@ function reviveState(state: unknown | undefined): undefined | string {
return (state as any).state;
}
return undefined;
}
}

0 comments on commit 231da46

Please sign in to comment.