- Open vscode at typescript repository
- Open file
src/tsc/tsc.ts
- Use goto Definition on say "normalizePath"
With this vscode calls definitionAndBoundSpan which returns definition in src/compiler/utilities.ts so vscode closes src/tsc/tsc.ts and opens src/compiler/utilities.ts and navigates to utilities.ts
tsserver deletes src/tsc/tsconfig.json project and creates src/compiler/tsconfig.json
If navigated back, it will close src/compiler/utilities.ts and hence its project and reopen src/tsc/tsc.ts and creating that project again.
I think we want to keep configured project if projectReferences in tsconfig refers to configured project which has openRef
src/tsc/tsc.tsWith this vscode calls definitionAndBoundSpan which returns definition in
src/compiler/utilities.tsso vscodecloses src/tsc/tsc.tsand openssrc/compiler/utilities.tsand navigates to utilities.tstsserver deletes
src/tsc/tsconfig.jsonproject and createssrc/compiler/tsconfig.jsonIf navigated back, it will close
src/compiler/utilities.tsand hence its project and reopensrc/tsc/tsc.tsand creating that project again.I think we want to keep configured project if projectReferences in tsconfig refers to configured project which has openRef