mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Verse plugin + rebase
GitOrigin-RevId: 616bfad4d33cb2145636001a243151ad51d888d6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
446c24cdd6
commit
24e64d4767
@@ -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) {
|
fun disableBundle(path: String) {
|
||||||
val normalizedPath = FileUtil.toSystemIndependentName(path)
|
val normalizedPath = FileUtil.toSystemIndependentName(path)
|
||||||
updateState { state ->
|
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 {
|
companion object {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun getInstance(): TextMateUserBundlesSettings? {
|
fun getInstance(): TextMateUserBundlesSettings? {
|
||||||
|
|||||||
Reference in New Issue
Block a user