Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 33232a2

Browse files
committed
locked_status.ast_max_files_hit fix 2
1 parent bd266e5 commit 33232a2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ast/ast_index_service.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ async fn ast_indexer_thread(
244244
.collect();
245245

246246
for (doc, res) in zip(docs_with_text, symbols) {
247+
let is_ast_full2 = ast_index.lock().await.is_overflowed();
248+
if is_ast_full2 {
249+
let mut locked_status = status.lock().await;
250+
locked_status.ast_max_files_hit = true;
251+
}
247252
match res {
248253
Ok(symbols) => {
249254
stats_symbols_cnt += symbols.len();

0 commit comments

Comments
 (0)