Skip to content

Commit

Permalink
locked_status.ast_max_files_hit fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
olegklimov committed Jul 19, 2024
1 parent bd266e5 commit 33232a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ast/ast_index_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ async fn ast_indexer_thread(
.collect();

for (doc, res) in zip(docs_with_text, symbols) {
let is_ast_full2 = ast_index.lock().await.is_overflowed();
if is_ast_full2 {
let mut locked_status = status.lock().await;
locked_status.ast_max_files_hit = true;
}
match res {
Ok(symbols) => {
stats_symbols_cnt += symbols.len();
Expand Down

0 comments on commit 33232a2

Please sign in to comment.