Commit 7a825ef1 authored by Ivan Shakhov's avatar Ivan Shakhov Committed by intellij-monorepo-bot
Browse files

fix-textmate-RIDER-106884-DEXP-783167

GitOrigin-RevId: 6e1165fdcad1259432bc2a157e7be5c995368b33
parent 29f2288e
Showing with 7 additions and 0 deletions
+7 -0
......@@ -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 ->
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment