Skip to content

Commit 72a903f

Browse files
committed
Update Digma UI
Expose variables to manage refresh interval and expiration limit for Recent Activity panel
1 parent a7a11a4 commit 72a903f

File tree

2 files changed

+104
-80
lines changed

2 files changed

+104
-80
lines changed

digmaUi/main.js

Lines changed: 99 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/views/RecentActivity/RecentActivityViewProvider.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ export class RecentActivityViewProvider implements vscode.WebviewViewProvider {
232232
233233
<body>
234234
<div id="root"></div>
235+
<script nonce="${nonce}">
236+
window.recentActivityRefreshInterval = 10 * 1000;
237+
window.recentActivityExpirationLimit = 10 * 60 * 1000;
238+
</script>
239+
<script nonce= src="${digmaUiFolderPath}/vscode.js"></script>
235240
<script src="${digmaUiFolderPath}/vscode.js"></script>
236241
<script src="${digmaUiFolderPath}/main.js"></script>
237242
</body>

0 commit comments

Comments
 (0)