Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Oct 15, 2021

Fixes #57157

This is targetting 17.0 to address the async lightbulb regression there. The core issue here is that prior to 'async lightbulbs' 'add using' already had two priority classes. Normal 'exact match' fixes that would show up at the top of the lightbulb, and 'normal pri' 'fuzzy matching' fixes that would show up at the bottom.

When we switched to async lightbulbs this broke as we'd compute all add-using fixes and put them before everything else. The fix here is to not immediately add all lightbulb sets to the bucket we're in. If they're low pri items, we wait until later to add them.

High pri add using fixes
Normal pri other fixes
Normal pri add using fixes

{
currentActionCount += set.Actions.Count();
collector.Add(set);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mavasani this will need to be updated when you add support for an actual 'low pri' bucket. actually, afaict, we should hav the following buckets:

  1. high. this is for Exact-AddUsing, and Rename.
  2. normal. almost everything else.
  3. low. Fuzzy-AddUsing, or any specific fixer that we put into the low group.
  4. lowest. suppress/configure

the general rule is that any fixer in one group can provide fixes for it's group and any group that follows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants