-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript Find All Reference does not work in monorepo #56268
Comments
This seems working as intended. You have a "solution" tsconfig at |
This issue has been marked as "Working as Intended" and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
So the only workaround is to not use solution tsconfig? Is there anything else that can be done tell VS Code to follow the paths from root tsconfig file? |
it's been a while @jaysoo , but just in case... And for others stumbling upon this issue... What @RyanCavanaugh meant by "solution tsconfig" is that the tsconfig file inside dev kit defines all that is need to be compiled. It's the entire thing and not, for example, part of a larger solution, a composite tsconfig which references or is referenced by other tsconfigs. VSCode asks TS about project information, never the other way around. And When typescript compiles the devkit project, it will follow the tsconfig.json, and only look at the files specified there and in referenced projects. Since from the tsconfig the TSC does not know of the existence of other projects, no reference will be found. Your options are either to reconfigure the tsconfig of the projects to use project references, or to create a separate (actually, maybe you'll have to create a I suggest you start using project references |
Does this issue occur when all extensions are disabled?:No
Steps to Reproduce:
git clone https://github.com/nrwl/nx.git cd nx pnpm install
code .
packages/devkit/src/utils/async-iterable/create-async-iterable.ts
createAsyncIterable
Expected:
All references are found (should be 17 invocations)
Actual:
No usages found (only reference is the declaration)
Related issues
#30823, microsoft/vscode#65102
The text was updated successfully, but these errors were encountered: