Skip to content

Could the tsserver add process.noAsar = true; #11348

@dbaeumer

Description

@dbaeumer

TypeScript Version: 2.0.3

VS Code uses Electron as a Node.js runtime to execute the tsserver. Electron comes with built-in ASAR (zip) support which makes ASARs look like directories and files to the normal fs functions. The downside is that if code traverses into an ASAR Electron puts a file lock onto the ASAR file which has bad consequences when you want to delete/move folders containing open ASARs

We have opened a PR against Electron that will allow us to disable ASAR support from the outside. Until that is merged in and picked up by us could the tsserver contain the following line early in its startup code:

process.noAsar = true;

This will disable ASAR support which is not needed by the tsserver anyways.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions