3

I'm trying to use the Claude Code extension, but it fails to initialize.

Environment:

  • Extension: 2.0.13
  • VS Code: 1.105.0
  • OS: Windows 11 (Windows_NT x64 10.0.26100)

Problem: Immediately after installation, the extension's side panel shows a persistent error: SyntaxError: Unexpected token 'C', "Claude con"... is not valid JSON. This error blocks all functionality. It seems the extension is trying to parse a non-JSON file that starts with "Claude con...".

I expected the extension to load normally after installation. Instead, I got the SyntaxError.

To fix this, I have tried exhaustively:

  1. Complete Reinstallation: Uninstalled the extension and manually deleted all related folders in %USERPROFILE%\.vscode\extensions and %APPDATA%\Code\User\globalStorage.
  2. Manual mcp.json Creation: Created a valid mcp.json with a correct PAT using a plain text editor to rule out script/encoding issues.
  3. Configuration Checks: Confirmed the workspace is "Trusted" and the user settings.json is empty. The error still occurs even with no folder open.
  4. Full VS Code Profile Reset: Renamed the entire %APPDATA%\Code folder to launch VS Code in a factory-fresh state. I installed only the Claude Code extension, but the same error occurred immediately.

None of these steps solved the problem. I now suspect the cause is an external factor (a bug specific to my environment or a network issue) rather than a local configuration error.

1 Answer 1

4

I got the same error after a storage update on my vs code side panel. In the terminal , I executed the "claude" command, and it prompted me with this configuration error. I selected the "reset with default configuration" which fixed my issue for the side-panel extension.

vs code version: 1.104.3 claude cli version: 1.0.128 I'm on Ubuntu 24.04.3 LTS (noble)
claude terminal response to fix the configuration error

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.