[BUG] `ide_selection` broken when filename starts with square brackets

Status Open
Reported on v2.1.215
Maintainer reply None cached
Activity 1 comment · opened Jul 20, 2026

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 selecting multiple lines with a file with a filename built like [<string>].<ext>, the Claude Code VSCode extension doesn't see the ide selection (it just sees the file)

What Should Happen?

The extension should be able to see the the ide selection of the lines

Error Messages/Logs

Steps to Reproduce

  1. Create a file [<string>].<ext>, for example [id].tsx
  2. Add a few random lines to it
  3. Try to select some of them
  4. You'd see that the ide selection is not ok

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.215

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗