提交 7d842fa5 编写于 作者: M Matt Bierner

Make sure we update our stored html when using the update function too

上级 06c418c0
......@@ -179,10 +179,11 @@ class DynamicWebviewEditorOverlay extends Disposable implements WebviewEditorOve
}
}
update(value: string, options: WebviewContentOptions, retainContextWhenHidden: boolean): void {
update(html: string, options: WebviewContentOptions, retainContextWhenHidden: boolean): void {
this._contentOptions = options;
this._html = html;
this.withWebview(webview => {
webview.update(value, options, retainContextWhenHidden);
webview.update(html, options, retainContextWhenHidden);
});
}
......
......@@ -74,7 +74,7 @@ export interface Webview extends IDisposable {
sendMessage(data: any): void;
update(
value: string,
html: string,
options: WebviewContentOptions,
retainContextWhenHidden: boolean
): void;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册