mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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:
parent
74907876d3
commit
72045c8306
8 changed files with 358 additions and 148 deletions
|
|
@ -368,6 +368,15 @@ void DocTools::remove_doc(const String &p_class_name) {
|
|||
class_list.erase(p_class_name);
|
||||
}
|
||||
|
||||
void DocTools::remove_script_doc_by_path(const String &p_path) {
|
||||
for (KeyValue<String, DocData::ClassDoc> &E : class_list) {
|
||||
if (E.value.is_script_doc && E.value.script_path == p_path) {
|
||||
remove_doc(E.key);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool DocTools::has_doc(const String &p_class_name) {
|
||||
if (p_class_name.is_empty()) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue