Skip to content
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

Ensure AutoImportProviderProject can share source files with main program #44274

Conversation

andrewbranch
Copy link
Member

Fixes a duplicate auto-import completions bug I noticed while working on #44295, caused by differing compiler options causing the AutoImportProviderProject not to share source files with its host Project.

It looks like those options (types, lib, and noLib) are actually misclassified as affecting module resolution, and @sheetalkamat is opening a PR to fix that (extracting work from #41004). Once that’s fixed, the bug will be fixed, and I can revert the part of this PR that is actually a substantive behavior change. The primary value of this PR is structuring the config in such a way that the overriding options can be tested against sourceFileAffectingCompilerOptions and adding that test.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels May 26, 2021
src/server/project.ts Outdated Show resolved Hide resolved
@andrewbranch andrewbranch marked this pull request as ready for review May 26, 2021 23:23
@andrewbranch andrewbranch merged commit b1eaf3e into microsoft:master May 26, 2021
@andrewbranch andrewbranch deleted the bug/duplicate-auto-imports-sometimes branch May 26, 2021 23:47
@DanielRosenwasser
Copy link
Member

Did this PR mean to reference something other than #44295?

@andrewbranch
Copy link
Member Author

Yes, but I no longer recall what 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants