From 412e87349a6f1c4f8989459d7a8c7f3a028833a4 Mon Sep 17 00:00:00 2001 From: Rindbee Date: Sun, 25 Sep 2022 23:13:39 +0800 Subject: Fix out of sync when the script is edited externally via lsp Previously, external editing via lsp would modify the modified time of the script, which caused the internal display of the script to not be refreshed when refocusing the engine. Now saving the script externally via lsp will automatically refresh the internal display. --- editor/plugins/script_editor_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins/script_editor_plugin.h') diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h index 59191b8891..1e78dc4ec4 100644 --- a/editor/plugins/script_editor_plugin.h +++ b/editor/plugins/script_editor_plugin.h @@ -477,7 +477,7 @@ public: bool toggle_scripts_panel(); bool is_scripts_panel_toggled(); void apply_scripts() const; - void reload_scripts(); + void reload_scripts(bool p_refresh_only = false); void open_script_create_dialog(const String &p_base_name, const String &p_base_path); void open_text_file_create_dialog(const String &p_base_path, const String &p_base_name = ""); Ref open_file(const String &p_file); -- cgit v1.2.3