@@ -1119,12 +1119,8 @@ void CodeTextEditor::update_editor_settings() {
11191119 text_editor->set_code_hint_draw_below (EDITOR_GET (" text_editor/completion/put_callhint_tooltip_below_current_line" ));
11201120 code_complete_enabled = EDITOR_GET (" text_editor/completion/code_complete_enabled" );
11211121 code_complete_timer->set_wait_time (EDITOR_GET (" text_editor/completion/code_complete_delay" ));
1122- bool first_time = idle_time == 0.0 ;
11231122 idle_time = EDITOR_GET (" text_editor/completion/idle_parse_delay" );
11241123 idle_time_with_errors = EDITOR_GET (" text_editor/completion/idle_parse_delay_with_errors_found" );
1125- if (first_time) {
1126- idle->set_wait_time (idle_time);
1127- }
11281124
11291125 // Appearance: Guidelines
11301126 if (EDITOR_GET (" text_editor/appearance/guidelines/show_line_length_guidelines" )) {
@@ -1604,6 +1600,11 @@ void CodeTextEditor::_error_pressed(const Ref<InputEvent> &p_event) {
16041600
16051601void CodeTextEditor::_notification (int p_what) {
16061602 switch (p_what) {
1603+ case NOTIFICATION_READY: {
1604+ set_error_count (0 );
1605+ set_warning_count (0 );
1606+ } break ;
1607+
16071608 case NOTIFICATION_THEME_CHANGED: {
16081609 if (toggle_scripts_button->is_visible ()) {
16091610 update_toggle_scripts_button ();
@@ -1845,7 +1846,6 @@ CodeTextEditor::CodeTextEditor() {
18451846 error_button->set_default_cursor_shape (CURSOR_POINTING_HAND);
18461847 error_button->connect (SceneStringName (pressed), callable_mp (this , &CodeTextEditor::_error_button_pressed));
18471848 error_button->set_tooltip_text (TTR (" Errors" ));
1848- set_error_count (0 );
18491849
18501850 // Warnings
18511851 warning_button = memnew (Button);
@@ -1855,7 +1855,6 @@ CodeTextEditor::CodeTextEditor() {
18551855 warning_button->set_default_cursor_shape (CURSOR_POINTING_HAND);
18561856 warning_button->connect (SceneStringName (pressed), callable_mp (this , &CodeTextEditor::_warning_button_pressed));
18571857 warning_button->set_tooltip_text (TTR (" Warnings" ));
1858- set_warning_count (0 );
18591858
18601859 status_bar->add_child (memnew (VSeparator));
18611860
0 commit comments