From bf34ae05721dda3e38c9d89adf9c6a49cf98a29d Mon Sep 17 00:00:00 2001 From: Rui Figueira Date: Sat, 6 Jul 2024 00:54:27 +0100 Subject: [PATCH] test/trace-viewer): revert mocked webview html getter / setter --- tests/mock/vscode.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/mock/vscode.ts b/tests/mock/vscode.ts index b0d06785c..1e0875afe 100644 --- a/tests/mock/vscode.ts +++ b/tests/mock/vscode.ts @@ -1124,18 +1124,7 @@ export class VSCode { private _createWebviewAndPage() { let initializedPage: Page | undefined = undefined; - let currHtml = ''; - const webview: any = { - get html() { - return currHtml; - }, - set html(newValue: string) { - if (newValue === currHtml) - return; - currHtml = newValue; - initializedPage?.reload().catch(() => {}); - } - }; + const webview: any = {}; webview.asWebviewUri = uri => path.relative(this.context.extensionUri.fsPath, uri.fsPath).replace(/\\/g, '/'); const eventEmitter = new EventEmitter(); webview.onDidReceiveMessage = eventEmitter.event;