Skip to content

VS Code's tsserver was deleted by another application such as a misbehaving virus detection tool. Please reinstall VS Code.  #72721

Closed

Description

@ggprod

Several extensions are causing the error on vscode startup:
VS Code's tsserver was deleted by another application such as a misbehaving virus detection tool. Please reinstall VS Code.

This is being caused by the latest vscode-docker extension, the redhat.java (Language support for Java by RedHat), redhat.vscode-yaml (YAML support by RedHat), esbenp.prettier-vscode (Prettier - Code Formatter) and others

  • VSCode Version: v1.33.1
  • OS Version: MacOS Mojave 10.14.4

Steps to Reproduce:

  1. Install certain extension
  2. Startup vscode

Does this issue occur when all extensions are disabled?: No

Activity

  1. added
    extensions
    on Apr 22, 2019
  2. up2pixy commented on Apr 22, 2019

    @up2pixy
    Member

    I have same issue today.

  3. mjbvz commented on Apr 23, 2019

    @mjbvz
    Contributor

    Mark Pevec (@ggprod) Can you check if the tsserver file has actually been deleted. For macos, it would be under the vs code executable itself:

    • For 1.33 stable: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js
    • For insiders: /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js

    In the terminal can just run, ls "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/" and see which files are present in that directory

  4. added
    info-needed
    on Apr 23, 2019
  5. wcjohnson11 commented on Apr 23, 2019

    @wcjohnson11

    I had this same error after updating Mac OS and VSCode this am but was able to fix the issue.

    • VSCode v1.33.1
    • OS version: Mac Mojave v10.14.4

    I checked in the dir that Matt Bierner (@mjbvz) mentioned above and tsserver.js was present.

    Steps to fix

    1. Click on the cog in the error message in VSCode which took me to the extension settings, VSCode's bundled typescript/javascript language features extension

    2. Click enable for this extension.

    3. Restart VSCode.

  6. ggprod commented on Apr 23, 2019

    @ggprod
    Author

    Matt Bierner (@mjbvz) Yes, I see the file present and was able to fix the problem via the method wcj (@wcjohnson11) indicates. Thanks!

  7. booc0mtaco commented on May 2, 2019

    @booc0mtaco

    It appears that if you disable this built-in extension (say, you want to use flow instead of typescript), you get this error on every application launch. This seems like a regression...

  8. valscion commented on May 8, 2019

    @valscion

    This started happening to me, too — I have disabled the vscode.typescript-language-features extension for the current workspace and get this error on every launch of VS Code.

    I do have the tsserver.js present. Running macOS Mojave version 10.14.4 (18E226) and VS Code version 1.33.1 (51b0b28)

    vesa_Vesas-MBP____code_v_venuu__zsh__and_VS_Code_s_tsserver_was_deleted_by_another_application_such_as_a_misbehaving_virus_detection_tool__Please_reinstall_VS_Code__·Issue__72721·microsoft_vscode_and_Extension__TypeScript_and_JavaScript

  9. mjbvz commented on May 8, 2019

    @mjbvz
    Contributor

    Does this also happen in the latest VS Code insiders build?


    Adding Sandeep Somavarapu (@sandy081) since it sounds like the builtin js/ts extension could still be activated even when disabled? Or that installing other extensions is corrupting our extension?

  10. valscion commented on May 9, 2019

    @valscion

    For some reason the error has gone away for me ¯\_(ツ)_/¯ I don't think I've updated anything between my message and now.

  11. sandy081 commented on May 9, 2019

    @sandy081
    Member

    Matt Bierner (@mjbvz) There was a bug recently (last stable) that disabled extensions are getting activated - #71752. This got fixed in insiders.

  12. cweekly commented on May 16, 2019

    @cweekly

    I'm on VSC v1.33.1, macOs 10.13.6, and saw this error today (after 1st system reboot in weeks). The Typescript built-in extension remained in "disabled" state. Restarted VSC a couple times and the error went away.

  13. mjbvz commented on May 16, 2019

    @mjbvz
    Contributor

    I'm closing this a a duplicate of #71752. If you see this when using VS Code 1.34+, please let me know

  14. added
    *duplicate
    and removed
    info-needed
    on May 16, 2019
  15. locked and limited conversation to collaborators on Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateextensions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions