Commit cb34c63
committed
Attribute Quick Access perfect match to its actual provider
The perfect-match removal loop in computeMatchingEntries never ran. Its
body was guarded by "if (perfectMatchProvider != null)" while that
variable starts null and is only assigned inside the guard, making the
assignment unreachable. The predicate also tested prevPickIds instead of
the perfect match, a leftover copy of the previous-picks removal above.
Consequently perfectMatchProvider stayed null, so the pinned perfect
match was always attributed to providers[0], and the perfect match was
never removed from its provider list (it could appear twice in the
show-all-matches view).
Find the provider whose elements contain the perfect match, remove it by
identity, and record that provider.1 parent e78dedb commit cb34c63
1 file changed
Lines changed: 5 additions & 6 deletions
File tree
- bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/quickaccess
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
528 | 527 | | |
529 | 528 | | |
530 | 529 | | |
| |||
0 commit comments