Skip to content

Make AutoImportProviderProject work with symlinked monorepos #39679

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

Merged
merged 11 commits into from
Jul 22, 2020

Conversation

andrewbranch
Copy link
Member

Fixes #38955

When the AutoImportProviderProject does module resolution, it needs to use its host project’s program’s resolution logic to take advantage of its special useSourceOfProjectReferenceRedirect handling (e.g. pretending .d.ts outputs exist when they don’t). Beyond that, the symlinks discovered during project reference resolution needed to be cached for longer than the program lifecycle (as they were prior to #37370). To minimize the cognitive footprint of moving that cache, I unified it with the existing symlinks cache LanguageServiceHost['getProbableSymlinks'], renaming it to getSymlinkCache.

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Jul 20, 2020
@andrewbranch andrewbranch merged commit ec33814 into microsoft:master Jul 22, 2020
@andrewbranch andrewbranch deleted the bug/38955 branch July 22, 2020 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import autocompletion with project references and yarn workspaces doesn't work
3 participants