claude-code - 💡(How to fix) Fix VSCode extension: clicking local HTML file links in chat no longer opens embedded browser preview

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

In a recent Claude Code VSCode extension update, clicking on a markdown link to a local HTML file in the chat panel stopped opening the file in an embedded browser preview (VS Code Simple Browser or Live Preview). Previously, clicking a link like `index.html` would open it directly in an embedded browser panel inside VS Code. Now it either does nothing or opens the file as text in the editor.

Root Cause

  • The workspace root is correctly set (the linked files are within the workspace)
  • Live Preview is installed and configured with openPreviewTarget: Embedded Preview
  • workbench.editorAssociations cannot be used as a workaround because Live Preview does not register a custom editor viewType
  • This is a regression: the behavior worked in an earlier version of the extension

Fix Action

Workaround

Right-click the HTML file in the sidebar and choose "Show Preview" to open Live Preview manually, then navigate from there. This requires an extra step that the previous behavior did not.

RAW_BUFFERClick to expand / collapse

Summary

In a recent Claude Code VSCode extension update, clicking on a markdown link to a local HTML file in the chat panel stopped opening the file in an embedded browser preview (VS Code Simple Browser or Live Preview). Previously, clicking a link like `index.html` would open it directly in an embedded browser panel inside VS Code. Now it either does nothing or opens the file as text in the editor.

Environment

  • OS: macOS Sequoia (Apple Silicon)
  • VS Code version: latest
  • Claude Code extension version: latest
  • Live Preview extension: ms-vscode.live-server 0.4.19

Steps to reproduce

  1. In a VS Code workspace, ask Claude Code to generate one or more HTML files
  2. Claude Code outputs a markdown link to the generated file in the chat panel
  3. Click the link
  4. Expected: file opens in VS Code embedded browser (as it previously did)
  5. Actual: file opens as text in the editor, or nothing happens

Notes

  • The workspace root is correctly set (the linked files are within the workspace)
  • Live Preview is installed and configured with openPreviewTarget: Embedded Preview
  • workbench.editorAssociations cannot be used as a workaround because Live Preview does not register a custom editor viewType
  • This is a regression: the behavior worked in an earlier version of the extension

Workaround

Right-click the HTML file in the sidebar and choose "Show Preview" to open Live Preview manually, then navigate from there. This requires an extra step that the previous behavior did not.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix VSCode extension: clicking local HTML file links in chat no longer opens embedded browser preview