Fix postMessage beint sent before webview is loaded

This commit is contained in:
Koen Vlaswinkel
2023-12-06 16:21:16 +01:00
parent 27418898b0
commit 4873d7eb12

View File

@@ -80,6 +80,10 @@ export class CompareView extends AbstractWebview<
commonResultSetNames,
};
const panel = await this.getPanel();
panel.reveal(undefined, true);
await this.waitForPanelLoaded();
await this.postMessage({
t: "setComparisonQueryInfo",
stats: {