Project references are not picked up (2) #80438
Labels
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Steps to Reproduce:
./tsconfig.json
:./shared/tsconfig.json
:./shared/main.ts
:./src/tsconfig.json
:./src/main.ts
:tsc --build
(observe no errors)./shared/main.ts
foo
Repo including the above test case: https://github.com/OliverJAsh/unsplash-ts-project-references/tree/orthogonal-folders
Expected: reference in
./src/main.ts
appearsActual: reference in
./src/main.ts
does not appearAlso, renaming
foo
in./shared/main.ts
does not propagate the change into./src/main.ts
.If I'm careful enough to navigate to
./src/main.ts
first, and then open./shared/main.ts
afterwards, VS Code is aware thatfoo
is used in both files. However, I don't believe this should be necessary.When I open
./shared/main.ts
, I assume VS Code is stopping at./shared/tsconfig.json
and looking no further. If it looked one level higher, it would find./tsconfig.json
, which references./src/tsconfig.json
, which in turn references./shared/tsconfig.json
.Does this issue occur when all extensions are disabled?: Yes
Potentially related:
The text was updated successfully, but these errors were encountered: