Verse plugin + rebase

GitOrigin-RevId: 616bfad4d33cb2145636001a243151ad51d888d6
This commit is contained in:
Ivan Shakhov
2024-09-04 16:06:01 +02:00
committed by intellij-monorepo-bot
parent 446c24cdd6
commit 24e64d4767

View File

@@ -29,6 +29,13 @@ class TextMateUserBundlesSettings : SerializablePersistentStateComponent<TextMat
}
}
fun removeBundle(path: String) {
val normalizedPath = FileUtil.toSystemIndependentName(path)
updateState { state ->
TextMateUserBundleServiceState(state.bundles.filter { it.key != normalizedPath })
}
}
fun disableBundle(path: String) {
val normalizedPath = FileUtil.toSystemIndependentName(path)
updateState { state ->
@@ -38,6 +45,11 @@ class TextMateUserBundlesSettings : SerializablePersistentStateComponent<TextMat
}
}
fun hasEnabledBundle(path: String): Boolean {
val normalizedPath = FileUtil.toSystemIndependentName(path)
return bundles[normalizedPath]?.enabled == true
}
companion object {
@JvmStatic
fun getInstance(): TextMateUserBundlesSettings? {