PY-85528 WSL: Fix file browser descriptor

(cherry picked from commit 4f4a3bd69955830d9b0fa41972d26f996bd23df0)

IJ-MR-182134

GitOrigin-RevId: 02bc3e1e0ee478436f0b90e66d9e245a421aefc7
This commit is contained in:
Alexey Katsman
2025-11-11 18:13:25 +00:00
committed by intellij-monorepo-bot
parent aa302277bc
commit 8ea8e543d1
@@ -122,7 +122,7 @@ internal class ComboBoxWithBrowseButtonEditor<T, P : PathHolder>(
is FileSystem.Target -> {
val targetType = fileSystem.targetEnvironmentConfiguration.getTargetType()
if (targetType is BrowsableTargetEnvironmentType) {
val descriptor = FileChooserDescriptorFactory.singleDir().withTitle(browseTitle)
val descriptor = FileChooserDescriptorFactory.singleFile().withTitle(browseTitle)
val hints = TargetBrowserHints(showLocalFsInBrowser = true, descriptor)
val actionListener = targetType.createBrowser(