Commit c53379b
Fix AST-137779: Move getScansForProject off the UI thread on scan completion
DataProvider.getScansForProject() invokes a blocking CLI subprocess
(CxWrapper.scanList -> Execution.executeCommand -> readLine). Calling it
inside syncExec blocked the UI thread for ~1.9s and caused a deadlock
where pool-9-thread-1 waited on the UI thread that was stuck in I/O.
Fix: read the branch combo text with a minimal syncExec (widget read only,
no I/O), then call getScansForProject on the background pollingScan thread,
then update the combo and show the notification in a second syncExec that
contains no blocking calls.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 5bfa931 commit c53379b
1 file changed
Lines changed: 10 additions & 5 deletions
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
337 | 345 | | |
338 | 346 | | |
339 | 347 | | |
340 | 348 | | |
341 | 349 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | 350 | | |
346 | 351 | | |
347 | 352 | | |
348 | | - | |
349 | | - | |
| 353 | + | |
| 354 | + | |
350 | 355 | | |
351 | 356 | | |
352 | 357 | | |
| |||
0 commit comments