Search code examples
crashvisual-studio-code

crash message: you can reopen the window to continue where you left off


I can't open VSCode. It keeps giving me this message and exits. It's like it's trying to restore the last session but the files might no longer be there.

I have tried installing the latest version but still getting this. Visual Studio Code. The window has crashed


Solution

  • I had the same issue. The solution that worked for me is the following.

    • Close all instances of vscode

    • navigate to %appdata%

    • Rename Vscode to Vscode.old or some other name

    • If you have "Visual Studio Code" rename that folder

    • If you have "Code - Insiders" rename that folder

    • The general idea is to rename vscode's folder to something else

    • Reopen vscode in admin mode

      Hope the solution helps someone