claude-code - 💡(How to fix) Fix VS Code: Markdown file links in chat responses no longer open files [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#49218Fetched 2026-04-17 08:47:31
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×5commented ×1

Markdown file links in Claude's chat responses no longer open files when clicked in the VS Code extension. This was working approximately 1-2 weeks ago.

Root Cause

Markdown file links in Claude's chat responses no longer open files when clicked in the VS Code extension. This was working approximately 1-2 weeks ago.

RAW_BUFFERClick to expand / collapse

Description

Markdown file links in Claude's chat responses no longer open files when clicked in the VS Code extension. This was working approximately 1-2 weeks ago.

Environment

  • VS Code Claude Code extension (native extension, not CLI)
  • Windows 11 Pro
  • Workspace path contains spaces (e.g., C:\Users\...)

Steps to Reproduce

  1. Open a workspace in VS Code whose path contains spaces
  2. Ask Claude to reference files in its response using markdown links
  3. Click on the file links in the chat output

Formats Tested

All of the following formats were tested — none open the file:

FormatResult
[file.sql](/ddl/current/file.sql) (relative, URL-encoded spaces)Clickable but does not open
[file.sql](c:/Users/.../ddl/current/file.sql) (absolute, URL-encoded)Clickable but does not open
[file.sql](file:///c:/Users/.../ddl/current/file.sql) (file URI)Clickable but does not open
[file.sql](ddl/current/file.sql) (relative, raw spaces)Not clickable
[file.sql](c:\Users\...\ddl\current\file.sql) (absolute, backslashes)Not clickable
[file.sql](c:/Users/.../ddl/current/file.sql) (absolute, forward slashes)Not clickable

Expected Behavior

Clicking a markdown file link in Claude's response should open the referenced file in the VS Code editor, as it did previously.

Notes

  • Spaces in the workspace path may be a contributing factor
  • This is a regression — the same link formats worked ~1-2 weeks ago

extent analysis

TL;DR

The issue with markdown file links in Claude's chat responses not opening files in the VS Code extension may be related to changes in how file paths with spaces are handled, and using a different link format or encoding might resolve the issue.

Guidance

  • Verify that the workspace path and file links are correctly formatted and encoded, considering the use of URL-encoded spaces or alternative path representations.
  • Test using a workspace path without spaces to determine if the issue is specifically related to spaces in the path.
  • Experiment with different link formats, such as using backslashes instead of forward slashes in absolute paths, to see if any of these work as expected.
  • Check for any recent updates or changes in the VS Code Claude Code extension that might have introduced this regression.

Example

No specific code snippet can be provided without more context on the extension's implementation, but an example of how a file link with a URL-encoded space might look is: [file.sql](c:/Users/username/Documents/My%20Workspace/ddl/current/file.sql).

Notes

The solution may depend on specifics of the VS Code extension and its handling of file paths, which are not detailed in the issue. The fact that this was working previously suggests a regression, possibly due to an update in the extension or VS Code itself.

Recommendation

Apply a workaround by testing different file link formats and path encodings to find one that works, as the root cause of the regression is not immediately clear and may require further investigation or updates to the extension.

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