Skip to content

Commit

Permalink
fix: update views when settings change
Browse files Browse the repository at this point in the history
Addresses #80
  • Loading branch information
JasonConger committed Jul 6, 2023
1 parent a2dbb06 commit 17aadc1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion out/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function activate(context) {
}
);
const updateWebview = async () => {
panel.webview.html = await splunkEmbeddedReportProvider.getWebviewContent(report);
panel.webview.html = await embeddedReportProvider.getWebviewContent(report);
}

updateWebview();
Expand Down Expand Up @@ -213,6 +213,12 @@ function activate(context) {
handleSplunkFile(context);
}
}));

// Set up listener for configuration setting changes
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration( () => {
embeddedReportProvider.refresh();
savedSearchProvider.refresh();
}))
}
exports.activate = activate;

Expand Down

0 comments on commit 17aadc1

Please sign in to comment.