I was experiencing issues with the claude code extension in my new windows machine. And I had this as well with linux.
For windows I should install the claude code terminal and then login with the anthropic console.
irm https://claude.ai/install.ps1 | iex
Then edit the path on environemnt variables and add this path.
C:\Users\alega\.local\bin
After that the vscode extension started to work.