-
Notifications
You must be signed in to change notification settings - Fork 885
VSCode extension does not appear to work with typeRoots #2147
Copy link
Copy link
Open
Labels
Domain: Module ResolutionRelated to module resolution and module checker errorsRelated to module resolution and module checker errorsDomain: ProgramRelated to the Program, file loadingRelated to the Program, file loading
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Domain: Module ResolutionRelated to module resolution and module checker errorsRelated to module resolution and module checker errorsDomain: ProgramRelated to the Program, file loadingRelated to the Program, file loading