Reputation: 4096
I'm getting the below error in visual studio code:
When I click on reopen this alert kept coming and not allowing me to write the code inside the editor. I have uninstall and reinstall visual studio code but still its showing this error.
Upvotes: 8
Views: 33698
Reputation: 51
Run this code on your ubuntu terminal:
rm -rf ~/.config/Code/
I am not sure it works for other Operating system
Upvotes: 2
Reputation: 840
Mac only:
$ open /Applications/Visual\ Studio\ Code.app -n
For context:
-n, --new Open a new instance of the application even if one is already running.
Thanks @TMG. More options can be found in the docs: https://code.visualstudio.com/docs/editor/command-line
Upvotes: 7
Reputation: 121
I have VS Code v1.38.1 installed on Ubuntu 18.4 encounter a similar crashing issue (failed to launch Code) today. It is possibly due to Ubuntu stopped while Code was open.
To resolve this issue, I did the following
$ cd ~/.config/Code
$ rm -rf Cache/
$ rm -rf CacheData/
$ rm -rf CacheExtensions/
Upvotes: 3
Reputation: 409
Try terminating any Code.exe processes still alive in Task Manager
Upvotes: 6