[BUG] Claude Code VSCode extension crashes if .claude/ is in .gitignore

Resolved 💬 5 comments Opened Dec 23, 2025 by REX2626 Closed Feb 14, 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 I have .claude/ in my .gitignore file, the VSCode extension crashes with the following error:

Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.

What Should Happen?

The extension side bar should open normally.

Error Messages/Logs

Steps to Reproduce

Add .claude/ to .ignore
Open VSCode

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.76 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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