vscode: The window terminated unexpectedly
Does this issue occur when all extensions are disabled?: Don’t know, but I guess, that Remote Extension needs to be active.
- VS Code Version: 1.76.0 and some before
- OS Version: Client: Windows / Server: Linux
Steps to Reproduce:
- Have VS Code open and change to an external terminal.
- Do something in the external terminal, which changes something in the folder or sub-folder (e.g. add a file), which is opened by VS Code.
On a lot of occasions (however not always) VS Code crashes with the message box: “The window terminated unexpectedly (reason: ‘crashed’, code: -36861).” This bug is already there for some VS Code versions.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 3
- Comments: 36 (2 by maintainers)
I don’t know if this is the same issue but after installing the latest update (1.76 -> 1.76.1 I think), VSCode won’t open at all and gives me this dialog (Windows 10). No matter what I try I can’t get passed this. I will have to try reinstalling.
I was finally able to fix the issue, follow these steps:
You can also open VSCode from the shortcut icon as well.
I have similar issue. Version 1.78.1 OS: Windows
I had this issue on Mac and none of the solutions were working so I simply deleted this folder
~/Library/Application Support/Code
and now everything works back to normalI thought this was my problem, but I found out that I had a large file open and Code was holding onto its cached copy in another workspace and kept trying to open it on every launch. I deleted the backup file from
~/Library/Application Support/Code/Backups
and that fixed it.I also did what @whoiscarlo suggested. I found the instructions here: https://code.visualstudio.com/docs/setup/uninstall#_clean-uninstall
@mirwaisbilal is correct! Once I went to my installation folder
\AppData\Local\Programs\Microsoft VS Code
and changed it toCode1.exe
it worked! Thank you.having the same issue with v1.79 every time I launch it as admin, which I need to debug a program that runs as admin.