mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Fix re-parsing when buffer's language has changed
This commit is contained in:
parent
015b6c4a31
commit
61b70b7e2d
1 changed files with 0 additions and 4 deletions
|
@ -306,10 +306,6 @@ impl SyntaxSnapshot {
|
|||
language: Arc<Language>,
|
||||
) {
|
||||
let edits = text.edits_since::<usize>(from_version).collect::<Vec<_>>();
|
||||
if edits.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
let max_depth = self.layers.summary().max_depth;
|
||||
let mut cursor = self.layers.cursor::<SyntaxLayerSummary>();
|
||||
cursor.next(&text);
|
||||
|
|
Loading…
Reference in a new issue