chore: [NO BACKPORT] fix 25.1 deprecations

This commit is contained in:
FalsePattern 2025-03-11 00:43:06 +01:00
parent 16fb4b57b7
commit c31a78d547
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
2 changed files with 3 additions and 3 deletions

View file

@ -202,7 +202,7 @@ class FilePathConfigurable(
class FilePathConfigModule(private val serializedName: String, @Nls private val label: String) : PathConfigModule<FilePathConfigurable>() { class FilePathConfigModule(private val serializedName: String, @Nls private val label: String) : PathConfigModule<FilePathConfigurable>() {
private val field = TextFieldWithBrowseButton( private val field = TextFieldWithBrowseButton(
TextBrowseFolderListener(FileChooserDescriptorFactory.createSingleFileDescriptor()), TextBrowseFolderListener(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()),
this this
) )

View file

@ -54,12 +54,12 @@ import kotlin.io.path.pathString
class ZLSSettingsPanel(private val project: Project) : ZigProjectConfigurationProvider.SettingsPanel { class ZLSSettingsPanel(private val project: Project) : ZigProjectConfigurationProvider.SettingsPanel {
private val zlsPath = textFieldWithBrowseButton( private val zlsPath = textFieldWithBrowseButton(
project, project,
FileChooserDescriptorFactory.createSingleFileDescriptor() FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()
.withTitle(ZLSBundle.message("settings.zls-path.browse.title")), .withTitle(ZLSBundle.message("settings.zls-path.browse.title")),
).also { Disposer.register(this, it) } ).also { Disposer.register(this, it) }
private val zlsConfigPath = textFieldWithBrowseButton( private val zlsConfigPath = textFieldWithBrowseButton(
project, project,
FileChooserDescriptorFactory.createSingleFileDescriptor() FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()
.withTitle(ZLSBundle.message("settings.zls-config-path.browse.title")) .withTitle(ZLSBundle.message("settings.zls-config-path.browse.title"))
).also { Disposer.register(this, it) } ).also { Disposer.register(this, it) }