show local and WSL roots in FileChooser dialog immediately; update WSL roots later...
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Thu, 2 Sep 2021 11:24:38 +0000 (14:24 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 2 Sep 2021 17:22:36 +0000 (17:22 +0000)
commit37bfb61865d63ef1531a873271f4a17c2c971c64
tree960625077c536cc262e1ae3239e44cf7abe02f82
parentd32da297ec6a2e4f9caf007b25a0c845e9148f3d
show local and WSL roots in FileChooser dialog immediately; update WSL roots later if needed (IDEA-274452)

Previously, PCE was thrown if WSL roots have not been calculated yet. This worked fine, because thrown PCE reschedules fetching all roots. However, this postpones showing regular local FS roots. Also, WSL roots are changed very infrequently, so showing possibly outdated WSL roots immediately is good, because it allows selecting initial path in the tree (IDEA-264220).

(cherry picked from commit f74f93615263de95611436f126c861ff085adf17)

IJ-CR-13723

GitOrigin-RevId: 1d62cfd2eab6afee817e5b464125adb085959b13
platform/platform-impl/src/com/intellij/execution/wsl/WslDistributionManager.java
platform/platform-impl/src/com/intellij/openapi/fileChooser/tree/FileTreeModel.java