-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
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.
bpasero
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue