VS Code: File links in chat stop working after closing the file tab
Resolved 💬 3 comments Opened Apr 23, 2026 by hadleyshapiro Closed Apr 26, 2026
Description
When Claude Code creates or references a file in a chat response, the markdown link auto-opens the file on first click. However, after closing that file tab, clicking the same link again does nothing — the file does not reopen.
Steps to reproduce
- Ask Claude to create a document (Word, PDF, or any file type)
- Claude outputs a clickable markdown link to the file in the chat
- File auto-opens (or opens on first click) — works correctly
- Close the file tab
- Click the same link in the chat again
- Nothing happens — file does not reopen
Expected behaviour
Clicking the link should reopen the file every time, regardless of how many times the tab has been closed and reopened.
Environment
- VS Code extension
- macOS (Darwin 25.3.0)
- Happens with all file types: .docx, .pdf, .sql, etc.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗