Fix highlighting warning and error issues related to Godot editor.

Fix Issue #104413 : Add a limit of 20 lines of warning highlight otherwise paint the background of the first line only.
Fix Issue #106278 : Extract the logic from clearing and setting background lines from _update_errors() and _update_warnings() to _update_background_text().
Fix Issue #83979 : Added signal for folding/unfolding lines (fold_lines_updated).
Feature: Highlight the folded line using signals connected to _update_background_text() to keep the editor visuals up to date. The background is set in the following priority order: Error, Warning, then Highlight background.
This commit is contained in:
Jorge Korgut Junior
2025-05-20 10:03:39 +02:00
parent 428a762e98
commit 77e6d92357
5 changed files with 109 additions and 39 deletions

View File

@@ -132,6 +132,8 @@ private:
String code_region_start_tag = "region";
String code_region_end_tag = "endregion";
void _update_code_region_tags();
bool _fold_line(int p_line);
bool _unfold_line(int p_line);
/* Delimiters */
enum DelimiterType {
@@ -426,6 +428,7 @@ public:
void toggle_foldable_line(int p_line);
void toggle_foldable_lines_at_carets();
int get_folded_line_header(int p_line) const;
bool is_line_folded(int p_line) const;
TypedArray<int> get_folded_lines() const;