From 8ea8e543d1b19940de27207cbefc4bfc33364c71 Mon Sep 17 00:00:00 2001 From: Alexey Katsman Date: Tue, 11 Nov 2025 16:13:08 +0100 Subject: [PATCH] PY-85528 WSL: Fix file browser descriptor (cherry picked from commit 4f4a3bd69955830d9b0fa41972d26f996bd23df0) IJ-MR-182134 GitOrigin-RevId: 02bc3e1e0ee478436f0b90e66d9e245a421aefc7 --- .../python/sdk/add/v2/ComboBoxWithBrowseButtonEditor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/sdk/add/v2/ComboBoxWithBrowseButtonEditor.kt b/python/src/com/jetbrains/python/sdk/add/v2/ComboBoxWithBrowseButtonEditor.kt index 3931dcc832a9..66721e721be0 100644 --- a/python/src/com/jetbrains/python/sdk/add/v2/ComboBoxWithBrowseButtonEditor.kt +++ b/python/src/com/jetbrains/python/sdk/add/v2/ComboBoxWithBrowseButtonEditor.kt @@ -122,7 +122,7 @@ internal class ComboBoxWithBrowseButtonEditor( 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(