Skip to content

Commit

Permalink
Fix ast_differ bug that would invalidate cache
Browse files Browse the repository at this point in the history
if more than 32 files were changed in LSP mode
  • Loading branch information
muglug committed May 8, 2024
1 parent 80661e6 commit 25d650e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/file_scanner_analyzer/ast_differ.rs
Expand Up @@ -131,15 +131,6 @@ pub(crate) fn get_diff(
}
}

for (_, invalid_file_info) in existing_files
.iter()
.filter(|(file_path, _)| !new_files.contains_key(file_path))
{
for node in &invalid_file_info.ast_nodes {
add_or_delete.insert((node.name, StrId::EMPTY));
}
}

CodebaseDiff {
keep,
keep_signature,
Expand Down

0 comments on commit 25d650e

Please sign in to comment.