1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Merge pull request #95821 from anvilfolk/cache-gd-docs

Scripting: Fix script docs not being searchable without manually recompiling scripts
This commit is contained in:
Thaddeus Crews
2025-03-13 08:57:40 -05:00
8 changed files with 358 additions and 148 deletions

View File

@@ -2171,6 +2171,7 @@ void EditorFileSystem::_update_script_documentation() {
if (!efd || index < 0) {
// The file was removed
EditorHelp::remove_script_doc_by_path(path);
continue;
}
@@ -2188,7 +2189,7 @@ void EditorFileSystem::_update_script_documentation() {
scr->reload_from_file();
}
for (const DocData::ClassDoc &cd : scr->get_documentation()) {
EditorHelp::get_doc_data()->add_doc(cd);
EditorHelp::add_doc(cd);
if (!first_scan) {
// Update the documentation in the Script Editor if it is open.
ScriptEditor::get_singleton()->update_doc(cd.name);