typescript-go
typescript-go copied to clipboard
VSCode extension does not appear to work with typeRoots
Extension Version
0.20251121.1
VS Code Version
1.106.2
Operating system Version
MacOS Tahoe 26.1
Steps to reproduce
- Clone this repo: https://github.com/ScottKaye/tsgo-repro/tree/master
cd assets && npm i- Open the base folder (tsgo-repro) in VS Code
- Toggle the TypeScript Native extension
Issue
With the extension disabled, types work.
However, with the extension enabled (tsgo running), types do not work:
There's nothing that appears to be useful in the logs.
Admittedly, this is a non-standard file layout. It reproduces the structure of a large monorepo I'm working in, where packages are managed in a subdirectory (assets) that isn't a direct ancestor of my application (app). tsconfig uses typeRoots to point at the alternative placement of node_modules, but this doesn't seem to be being followed by tsgo.