Commit a03dbc9
committed
Apply Quick Access results by request state instead of last job
QuickAccessContents.updateProposals applied a compute job's results only
when it was still the last scheduled job (computeProposalsJob ==
currentComputeEntriesJob). A shell resize schedules another updateProposals
right after a compute finishes, so the still-valid results of the finished
job were discarded, and the newer job was then cancelled by the following
resize before it rendered anything. The table stayed empty, which is the
intermittent failure in
QuickAccessDialogTest.testPreviousChoicesAvailableForExtension.
In addition, the modify listener passed the raw filter text while the resize
and show-all listeners passed a lower-cased one, so a single UI state
produced two competing jobs and only the lower-cased one matched (the matcher
requires a lower-cased filter).
Normalize the filter to lower case once in updateProposals so all callers
share one filter string, and apply a finished job's results when they still
match the current request state (filter text and show-all) instead of when
the job happens to be the last scheduled one. A valid result is no longer
dropped because a later recompute was scheduled, while a result for a filter
the user has since changed is still rejected.
Addresses #40091 parent fe783d5 commit a03dbc9
1 file changed
Lines changed: 20 additions & 7 deletions
File tree
- bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/quickaccess
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
| 174 | + | |
| 175 | + | |
171 | 176 | | |
172 | 177 | | |
173 | 178 | | |
| |||
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 211 | + | |
211 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
212 | 225 | | |
213 | 226 | | |
214 | 227 | | |
| |||
0 commit comments