vscode: Unable to open editor: Unexpected token JSON at position x.

  • VSCode Version: 1.47.0
  • OS Version: mac os Catalina

Steps to Reproduce:

Does this issue occur when all extensions are disabled?: Yes

after update and restart, for every file i click on i get this error. (with file name instead of ???, but with SAME position number) It happens only in one project. when i go to source control and click a file there, the file gets opened with his changes. if i click the same file in explorer I’ll get the error. i get the error trying to open vscode settings file from command palette too.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (10 by maintainers)

Commits related to this issue

Most upvoted comments

For users: If my analysis is right, the following should work around the problem:

  • Linux: mv ~/.config/Code/User/workspaceStorage ~/.config/Code/User/workspaceStorage.old
  • Mac: mv ~/Library/Application\ Support/Code/User/workspaceStorage ~/Library/Application\ Support/Code/User/workspaceStorage.old
  • Windows: rename %APPDATA%\Code\User\workspaceStorage %APPDATA%\Code\User\workspaceStorage.old