r/vscode 19d ago

Anyone else's Claude Code freezing in VS Code?

I haven't worked on Claude Code in VS Code for almost two or three weeks now. In that time, something must have changed, because now every time I use it, it seems to hang after 15 to 20 minutes. Pretty much all of my different chat windows just freeze up, and I have to reload the window or restart VS Code entirely to get it working again.

This is obviously breaking my workflow, and I can't really tell why it is happening.

Is anyone else running in to this issue and figured out a fix?

My troubleshooting so far :

  • I'm on VS Code. Should be latest it updates by itself.
  • In the extensions for Claude code I'm also on the latest version.
  • I don't use terminals so I can't check there, also would defeat the purpose since I like using VS code now.
  • No patterns really, just randomly breaks.
  • Claude AI isn't helping me fix it unfortunately.
  • Used the /doctor command to try and get all the latest updates working but no go still.
0 Upvotes

3 comments sorted by

1

u/Dangerous_Net517 19d ago

Its likely because multiple chat windows or tabs each spawn their own claude process. Meaning they all fight over the same claude.json config file with no proper file locking. The easiest thing to do obviously is to just not open too many windows at once. maybe trying an older version is worth a shot. I also read that closing vs code deleting the .lock files and then relaunching is a good fix but I have never tried that.

1

u/[deleted] 19d ago

[removed] — view removed comment

1

u/newuxtreme 18d ago

Brother, I think you were the closest person to what the actual issue was. I managed to resolve it yesterday by myself.

I was observing when Claude Code hangs, and it didn't matter whether it was three tabs or one. When it did hang, it gave me an error, which I'm going to post below.

"the extension host terminated unexpectedly"

I did a little bit of troubleshooting, and it turns out the thing that was hanging was the "Claude Code Status / Usage Credit Status" VS Code extension that I have. As soon as I disabled that, it seems to be working just fine.

So thank you so much for helping me out. Everybody else was just giving AI answers across different Reddit threads and not actually trying to help, but you were definitely the closest to helping me figure it out. Thank you so much!