Skip to content

Commit

Permalink
fix: show results if panel is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
saravmajestic committed Dec 12, 2024
1 parent 3f0e632 commit 0e2599c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/webview_provider/insightsPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,18 @@ export class InsightsPanel extends AltimateWebviewProvider {
await this.dbtProjectContainer.executeAltimateDatapilotHealthcheck(
args,
);
if (this._panel?.visible) {
window.showInformationMessage("Healthcheck completed successfully.");
this._panel!.webview.postMessage({
command: "response",
args: {
syncRequestId,
body: { projectHealthcheck },
status: true,
},
});
return;
}
const result = await window.showInformationMessage(
"Healthcheck completed successfully.",
"View results",
Expand Down

0 comments on commit 0e2599c

Please sign in to comment.