VS Code Extensions
TS Multiroot

TS Multiroot

by juliengrach

On a multiroot project, tsserver restarts with the project's ts version

Downloads

10

Rating

— (0)

Version

1.0.2

Last updated

Apr 15, 2026

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.

Related extensions