Skip to content

Commit 14a5dca

Browse files
committed
Fix: iframe caching issues
1 parent b4d9e56 commit 14a5dca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/commands/showPanel.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ export async function showPanel(
4040
undefined,
4141
context.subscriptions,
4242
);
43-
44-
const iframeUrl = new URL(route ?? "/playground", config.frontendBaseUrl)
45-
.href;
43+
44+
// Cache-busting: append a short-lived query param so VS Code picks up the latest frontend build.
45+
const urlObj = new URL(route ?? "/playground", config.frontendBaseUrl);
46+
urlObj.searchParams.set("v", String(Date.now()));
47+
const iframeUrl = urlObj.href;
4648

4749
setWebviewContent(
4850
messageHandler.panel,

0 commit comments

Comments
 (0)