Scripting: Add script documentation cache to project
This PR adds a script documentation cache in the project folder. It is loaded at alongside native documentation caches. This makes scripts fully accessible through Search Help, including their members, etc, right from project start, without having to compile every single script. Co-authored-by: Hilderin <81109165+Hilderin@users.noreply.github.com>
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user