[BUG] VS Code Claude Extension does not detect files starting with '[' (e.g., [id].vue)

Resolved 💬 2 comments Opened Nov 6, 2025 by nd2024 Closed Nov 6, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using the Claude VS Code extension, files that start with a bracket ([) such as dynamic route files in frameworks like Nuxt (e.g. [id].vue) do not appear in the file search when trying to attach file in the chat.

What Should Happen?

Files that begin with square brackets (e.g. [id].vue, [slug].js) should appear in search results and be attachable like any other file.

Error Messages/Logs

Steps to Reproduce

  1. Create a file named [id].vue in your VS Code workspace.
  1. Open the Claude extension sidebar.

3 Type @ then search for the file to attach it.

  1. Observe that the file does not appear in the results.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.33 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

These files can still be attached manually if you type their exact relative path (e.g. @pages/[id].vue), but this is so inconvenient.

View original on GitHub ↗

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