fix-textmate-RIDER-106884-DEXP-783167

GitOrigin-RevId: cc8d56ac097fea0be4e6ee56a30d4ed464efa451
This commit is contained in:
Ivan Shakhov
2024-03-12 14:19:50 +01:00
committed by intellij-monorepo-bot
parent ce2933b6c7
commit d36ba38c7c

View File

@@ -22,6 +22,13 @@ class TextMateUserBundlesSettings : SerializablePersistentStateComponent<TextMat
}
}
override fun loadState(state: State) {
// It is eccentric, but with a bad textmate.xml, we can get null there
// RIDER-106884 Godot project automatically closes after attempting to open it
// not sure, why tooling says that value is never null
super.loadState(State(state.bundles.filter { it.value != null }))
}
fun addBundle(path: String, name: String) {
val normalizedPath = FileUtil.toSystemIndependentName(path)
updateState { state ->