Skip to content

Commit

Permalink
[sidecar] return false answer early
Browse files Browse the repository at this point in the history
  • Loading branch information
theskcd committed Feb 21, 2024
1 parent fe86038 commit 29f740b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sidecar/src/inline_completion/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ fn walk_tree_for_no_errors(cursor: &mut TreeCursor, inserted_range: &Range) -> b

if cursor.goto_first_child() {
answer = answer && walk_tree_for_no_errors(cursor, inserted_range);
if !answer {
return answer;
}
cursor.goto_parent();
}

Expand Down

0 comments on commit 29f740b

Please sign in to comment.