chore: [NO BACKPORT] fix 25.1 deprecations
This commit is contained in:
parent
16fb4b57b7
commit
c31a78d547
2 changed files with 3 additions and 3 deletions
|
@ -202,7 +202,7 @@ class FilePathConfigurable(
|
|||
|
||||
class FilePathConfigModule(private val serializedName: String, @Nls private val label: String) : PathConfigModule<FilePathConfigurable>() {
|
||||
private val field = TextFieldWithBrowseButton(
|
||||
TextBrowseFolderListener(FileChooserDescriptorFactory.createSingleFileDescriptor()),
|
||||
TextBrowseFolderListener(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()),
|
||||
this
|
||||
)
|
||||
|
||||
|
|
|
@ -54,12 +54,12 @@ import kotlin.io.path.pathString
|
|||
class ZLSSettingsPanel(private val project: Project) : ZigProjectConfigurationProvider.SettingsPanel {
|
||||
private val zlsPath = textFieldWithBrowseButton(
|
||||
project,
|
||||
FileChooserDescriptorFactory.createSingleFileDescriptor()
|
||||
FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()
|
||||
.withTitle(ZLSBundle.message("settings.zls-path.browse.title")),
|
||||
).also { Disposer.register(this, it) }
|
||||
private val zlsConfigPath = textFieldWithBrowseButton(
|
||||
project,
|
||||
FileChooserDescriptorFactory.createSingleFileDescriptor()
|
||||
FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()
|
||||
.withTitle(ZLSBundle.message("settings.zls-config-path.browse.title"))
|
||||
).also { Disposer.register(this, it) }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue