Skip to content

Commit

Permalink
fix: Language server may crash while generating the document outline
Browse files Browse the repository at this point in the history
  • Loading branch information
slavek-kucera committed Jan 18, 2023
1 parent 36c8895 commit f85ae1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser_library/src/lsp/lsp_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ bool do_not_need_nodes(const std::vector<context::processing_frame>& sym,
}
i++;
}
return false;
return i >= sym.size();
}

void lsp_context::document_symbol_symbol(document_symbol_list_s& modified,
Expand Down

0 comments on commit f85ae1d

Please sign in to comment.