Search code examples
visual-studiovisual-studio-code

Error : Extension host terminated unexpectedly in VS Code


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 ?


Solution

  • 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