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

  1. Ask Claude to create a document (Word, PDF, or any file type)
  2. Claude outputs a clickable markdown link to the file in the chat
  3. File auto-opens (or opens on first click) — works correctly
  4. Close the file tab
  5. Click the same link in the chat again
  6. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗