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.
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