0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Code の VSCode 拡張で current file selection がなぜか誤ったファイルを選択している時に見る記事

Posted at

Claude Code には VSCode 拡張があります。VSCode拡張の登場当初と比べて、現状の拡張はリッチなUIになってくれてすごく便利である一方で、なぜか current file selection がうまく機能していない時ってありませんか?

その場合、VSCode 上で今開いているファイルのパスが次のようになっていないか確かめてください。例えばNuxtなら次のようなファイルを作成してルーティングしますよね。

  • pages/posts/[id].vue

こういった [id] のようなパスがある場合、Claude CodeのVSCode拡張がうまく解釈してくれない時があるみたいです(2025年11月上旬現在)。メタフレームワークごとにこの手の動的パスパラメータのページを作るやり方があると思いますが、どのメタフレームワークもちょっとパスの書き方を特殊にしがちですよね。何かしらの記号と組み合わせたり...どうやらClaude CodeのVSCode拡張側がファイルのパスをcurrent file selectionに連携する時にいくらかバグがあるのか、うまく動作しない場合があります。

なので、もし自分が使っているメタフレームワークで、current file selection がうまく動かない時は、そのファイルのパスの形式に注目して組みてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?