Skip to content

Ensure AutoImportProviderProject can share source files with main program - #44274

Merged
Andrew Branch (andrewbranch) merged 4 commits into
microsoft:masterfrom
andrewbranch:bug/duplicate-auto-imports-sometimes
May 26, 2021
Merged

Ensure AutoImportProviderProject can share source files with main program#44274
Andrew Branch (andrewbranch) merged 4 commits into
microsoft:masterfrom
andrewbranch:bug/duplicate-auto-imports-sometimes

Conversation

@andrewbranch

Copy link
Copy Markdown
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 Sheetal Nandi (@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.

Comment thread src/server/project.ts Outdated
@andrewbranch
Andrew Branch (andrewbranch) marked this pull request as ready for review May 26, 2021 23:23
@andrewbranch
Andrew Branch (andrewbranch) merged commit b1eaf3e into microsoft:master May 26, 2021
@andrewbranch
Andrew Branch (andrewbranch) deleted the bug/duplicate-auto-imports-sometimes branch May 26, 2021 23:47
@DanielRosenwasser

Copy link
Copy Markdown
Member

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

@andrewbranch

Copy link
Copy Markdown
Member Author

Yes, but I no longer recall what 🤔

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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