Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.05 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.05 KB

tsserver-bridge

This package was created in response to microsoft/TypeScript#30981

NOW OBSOLETE 🎉

With the upgrade of electron in VSCode 1.4 and the addition of typescript.tsserver.maxTsServerMemory, this package can now be removed!

Example Useage

npm install tsserver-bridge
npx tsserver-bridge --memory=4096 --destination=ts-custom

This script will create copy of typescript installed in node_modules and replace its tsserver.js file with a bridge file which spawns a seperate node process, outside of electron with the given max memory option

Integration

To make integration with vscode seamless, we add tsserver-bridge to our dependencies and add

{
  "scripts": {
    "postinstall": "tsserver-bridge --memory=4096"
  }
}

In the scripts key of package.json

We create a workspace settings folder for vscode and add to settings.json in there

{
  "typescript.tsdk": ".vscode/typescript/lib"
}