You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Projects with "useSingleInferredProject"=false are disconnected from Configured Project randomly #14838
Create two files "foo.ts" and "bar.ts" foo.ts export class Bar {} bar.ts import {Bar} from "./foo"
Create the tsconfig: { "exclude": [ "bar.ts"] }
Start tsserver with the option useSingleInferredProject=false
Open "bar.ts" file. The file will be connected to "Configured Project" with the tsconfig.json
Open "foo.ts" file. The file will be connected to "Inferred Project". The file "bar.ts" will be connect to the "Inferred Project" also (it is ok) but the file "bar.ts" will be disconnected from the "Configured Project" and it is very unexpected behaviour.
I found the cause:
Here: Link to code
definitely must be isRootFileInInferredProject(f) instead of isRootFileInInferredProject(info)
Activity
typescript: fix random "cannot find parent tsconfig.json" error for p…
typescript: fix random "cannot find parent tsconfig.json" error for p…
zhengbli commentedon Apr 7, 2017
Andrey Starovoyt (@anstarovoyt) thanks for the find! I just found the cause as well and searched the issues then found your post :)