Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TS MultirootNew to Visual Studio Code? Get it now.
TS Multiroot

TS Multiroot

juliengrach

|
2 installs
| (0) | Free
On a multiroot project, tsserver restarts with the project's ts version
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TS Multiroot

Automatically switch the TypeScript SDK to the version installed in your project.

In a multiroot workspace, each project may use a different version of TypeScript. By default, VSCode uses its own bundled tsserver unless you manually select the workspace version — this extension does it for you, automatically.

How it works

When you switch to a file in a different project, the extension:

Walks up the directory tree to find the nearest package.json Checks if node_modules/typescript/lib exists in that project Updates typescript.tsdk to point to that version

It also watches for node_modules changes (e.g. after npm install) and updates the SDK path accordingly.

Requirements

Each project in your workspace must have TypeScript installed locally: bashnpm install typescript

Extension Settings

This extension does not add any settings. It updates typescript.tsdk automatically via the VSCode API.

Known Limitations

On the first install, VSCode may prompt you to confirm the use of the workspace TypeScript version — this is a VSCode security mechanism and cannot be bypassed programmatically. If no local TypeScript installation is found in the active project, the SDK path is left unchanged.

Release Notes

1.0.0 Initial release.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft