Skip to content

Simple CLI to create a copy of typescript with a bridge for tsserver with the option of max memory allocation

Notifications You must be signed in to change notification settings

azmenak/tsserver-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

Simple CLI to create a copy of typescript with a bridge for tsserver with the option of max memory allocation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published