Skip to content

Fix auto-import completions sometimes not updating existing imports #48815

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 1 commit into from
Apr 22, 2022

Conversation

andrewbranch
Copy link
Member

Fixes #47779

I also suspect this will address at least some of the crashes we’ve seen here, as I noticed that the auto-import computation for completion details has always used getImportFixes, while the computation for the completion list mistakenly used getNewImportFixes which doesn’t try to reuse existing imports. That inconsistency could definitely cause problems, as the details request is essentially supposed to continue the same work that the list request started.

@andrewbranch andrewbranch requested a review from sandersn April 22, 2022 18:49
@andrewbranch andrewbranch requested a review from gabritto April 22, 2022 18:49
@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Apr 22, 2022
@andrewbranch andrewbranch requested a review from amcasey April 22, 2022 18:49
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 for IDisposable is no longer suggested
3 participants