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>() {
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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) }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue