Fix RIDER-111570: ReSharper settings should not be configurable

They are always imported by default.

GitOrigin-RevId: 7ef044ccd6764afdcd8ce55d5b4441a017cf14d6
This commit is contained in:
Ivan Migalev
2024-07-23 20:25:28 +02:00
committed by intellij-monorepo-bot
parent a48ed40146
commit 27448aaa65
2 changed files with 7 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ abstract class SettingChooserPage(private val provider: ActionsDataProvider<*>,
val listPane = JPanel(VerticalLayout(0)).apply {
isOpaque = false
productService.getSettings(product.id).forEach {
val st = createSettingPane(it, configurable, { changeHandler() }, this@SettingChooserPage)
val st = createSettingPane(it, it.isConfigurable && configurable, { changeHandler() }, this@SettingChooserPage)
settingPanes.add(st)
add(st.component())
}

View File

@@ -253,6 +253,12 @@ interface BaseSetting {
val icon: Icon
val name: @Nls String
val comment: @Nls String?
/**
* Whether the user should be allowed to turn the setting on and off.
*/
val isConfigurable: Boolean
get() = true
}
interface Configurable : Multiple {