Error : Extension host terminated unexpectedly in VS Code
Asked Answered
L

2

10

Many of you faced the error while coding in vs code unexpectedly. I had also faced the issue while coding and it seems to be a tall-order task to fix the issue.

enter image description here

Many of you tried even I also tried the following methods

  1. removed git folder
  2. uninstalled all extensions
  3. disabled the git in the settings.json file
  4. removed cached files of the software
  5. even uninstalled VS code and installed it again, but it gives me the same error that says: "Extension host terminated unexpectedly"

so what's the solution for this problem ?

Liggins answered 21/11, 2021 at 8:30 Comment(0)
L
30

The solution for the problem :

  1. Open your vscode and launch the command palette by ctrl + shift + p enter image description here

  2. Start the Extension Bisect

  3. You can see a pop-up window like this

enter image description here

If your vscode works perfectly, select "Good now"
However, if you see the error "Extension host terminated unexpectedly", select the "This is bad" option.

  1. This program is a binary search algorithm which finds the extensions that cause the root problem and fix the issue that currently faces
Liggins answered 21/11, 2021 at 8:30 Comment(2)
This worked for me. First it disabled 36 extensions, then I said Good Now, then it did 18 and so on. Finally, I cancelled it when the extension I was interested in was enabled. Did not get to the root of it though.Polyptych
I don't know why this is not referenced more. When extension breaks you might not know if that is the actual extension you want to use or another one. (In my case LiveShare was the culprit)Prophylactic
F
0

I tried the Extension Bisect but it did not work. Then proceeded to disable all the extensions but then also the error came. I uninstalled extensions but still the error came up.

I disabled the breakpoints and then the error went surprisingly. Breakpoints are disabled

Fourchette answered 29/8, 2024 at 12:24 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.