Files
openide/platform/scopes
Kate Botsman c1f8f3b6e5 [find in files] IJPL-210278 Fix "Selected Files" and "Selected Directories" missing from scopes list
These two scopes depend on the data context and are shown only when multiple files or directories are selected.
Previously, all scopes were collected on the EDT right before the Find in Files dialog opened,
and the data context was correctly obtained in `CoroutineScopeModel.refreshScopes`.

After splitting FiF, scopes started being collected in the background, which delayed data context collection.
Because of this delay, the FiF dialog could open before the context was ready, and focus might shift,
causing the selected files or directories to be missing from the context. As a result,
the scopes list didn’t show “Selected Files” or “Selected Directories”.

The fix is to collect the data context as early as possible on the EDT and pass it to the async method.


(cherry picked from commit deb40d3e28078d366332b379a323edea36273106)

IJ-CR-180011

GitOrigin-RevId: edc165132c015ef781f142f43de2c6a23958b89e
2025-10-31 20:08:35 +00:00
..