Receiving error message 'Extension host terminated unexpectedly.' in Visual Studio Code

前端 未结 14 1115
夕颜
夕颜 2020-12-10 10:55

I have been looking around and I haven\'t found any answers to my issue.
I keep getting this error \"Extension host terminated unexpectedly.\" and I

相关标签:
14条回答
  • 2020-12-10 11:23

    For me this was happening due to HTML CSS Support extension. so i removed it and restarted vs code and voila! it worked!

    0 讨论(0)
  • 2020-12-10 11:28

    In my case it was from the extension "Todo Tree". It was breaking on a particularly large file in my project (13.7mb), with the error saying the file was over the max-size for a node-buffer (used by the C regex matcher).

    Resolved the issue by disabling the extension.

    I also opened an issue for it here: https://github.com/Gruntfuggly/todo-tree/issues/135

    0 讨论(0)
  • 2020-12-10 11:29

    I recently ran into the same error message after accepting a permission to run a program on the extension livepreview. It corrupted all other extensions where it could not find the commands. I deleted all extension files and reinstalled the other extensions without a problem. I tried liveserver again but It never prompted me again for permissions and still, the error message keeps occurring. I'm assuming liveserver was trying to ask the computer permission to run a local server after which is still accepted but something else is interfering with the computer being able to translate from the program to actually building and accessing the local server.

    0 讨论(0)
  • 2020-12-10 11:34

    Remove all Extensions which are located in a per user extensions folder. Depending on your platform, the location is in the following folder:

    • Windows %USERPROFILE%\.vscode\extensions
    • macOS ~/.vscode/extensions
    • Linux ~/.vscode/extensions

    Restart vscode and start installing extensions.

    0 讨论(0)
  • 2020-12-10 11:35

    Linking my github issue on Microsoft/vscode as reference.
    It ended up being one of the base extensions that runs on startup that was the root of the problem.

    In my case the git in extensions folder was causing it.
    "git.enabled": false was not doing the trick so I had to remove the git folder altogether for the error to disappear.

    0 讨论(0)
  • 2020-12-10 11:40

    I disabled all the extensions with name Live for example Live Server, Live Share etc and restarted my vscode again and it worked for me.

    0 讨论(0)
提交回复
热议问题