This package was created in response to microsoft/TypeScript#30981
With the upgrade of electron in VSCode 1.4 and the addition of typescript.tsserver.maxTsServerMemory, this package can now be removed!
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
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"
}