Add EditorSettings EDITOR_GET_CACHED

This commit is contained in:
lawnjelly 2025-07-01 09:20:07 +01:00
parent 1a7d99e37d
commit 0718852d2c
38 changed files with 153 additions and 88 deletions

View file

@ -1507,17 +1507,17 @@ void CodeTextEditor::_on_settings_change() {
// Auto brace completion.
text_editor->set_auto_brace_completion(
EDITOR_GET("text_editor/completion/auto_brace_complete"));
EDITOR_GET_CACHED(bool, "text_editor/completion/auto_brace_complete"));
code_complete_timer->set_wait_time(
EDITOR_GET("text_editor/completion/code_complete_delay"));
EDITOR_GET_CACHED(float, "text_editor/completion/code_complete_delay"));
// Call hint settings.
text_editor->set_callhint_settings(
EDITOR_GET("text_editor/completion/put_callhint_tooltip_below_current_line"),
EDITOR_GET("text_editor/completion/callhint_tooltip_offset"));
EDITOR_GET_CACHED(bool, "text_editor/completion/put_callhint_tooltip_below_current_line"),
EDITOR_GET_CACHED(Vector2, "text_editor/completion/callhint_tooltip_offset"));
idle->set_wait_time(EDITOR_GET("text_editor/completion/idle_parse_delay"));
idle->set_wait_time(EDITOR_GET_CACHED(float, "text_editor/completion/idle_parse_delay"));
}
void CodeTextEditor::_text_changed_idle_timeout() {