Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

migrator: Fix case where users see migration banner despite no diff changes (#26982)

Smit Barmase4b775505f589
diff --git a/crates/migrator/src/migrator.rs b/crates/migrator/src/migrator.rs
index e1d5ef0199e..c9d3ecd98d1 100644
--- a/crates/migrator/src/migrator.rs
+++ b/crates/migrator/src/migrator.rs
@@ -77,7 +77,7 @@ fn run_migrations(
result = Some(migrated_text);
}
}
- Ok(result)
+ Ok(result.filter(|new_text| text != new_text))
}
pub fn migrate_keymap(text: &str) -> Result<Option<String>> {