Skip to content

Add reload_open_files() to script editor#116187

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
nikitalita:expose_reload_scripts
Feb 19, 2026
Merged

Add reload_open_files() to script editor#116187
Repiteo merged 1 commit into
godotengine:masterfrom
nikitalita:expose_reload_scripts

Conversation

@nikitalita

@nikitalita nikitalita commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Supersedes #83267

This adds reload_open_files() to the script editor.

Pursuant to @kitbdev 's feedback:

This can cause unsaved changes to be lost without confirmation.
It would be better to expose _test_script_times_on_disk (and maybe _update_modified_scripts_for_external_editor which is usually called after it?, effectively _on_find_in_files_modified_files) if needed.

I have implemented reload_open_files() to call _test_script_times_on_disk() and _update_modified_scripts_for_external_editor(). This will reload all the scripts if there are no unsaved scripts; if there are, the user will be prompted to save them first.

@kitbdev kitbdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, makes sense to expose this.

Comment thread doc/classes/ScriptEditor.xml Outdated
@Repiteo Repiteo modified the milestones: 4.x, 4.7 Feb 18, 2026
@Repiteo

Repiteo commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Needs squash

@Repiteo

Repiteo commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Thanks!

(PR is merged, GitHub is being slow to update)

@Repiteo Repiteo merged commit 4f62fa0 into godotengine:master Feb 19, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment