Merge pull request #98169 from HolonProduction/only-highlight-exposed

GDScript: Don't highlight unexposed classes
This commit is contained in:
Thaddeus Crews 2024-10-24 13:23:04 -05:00
commit 3c7fb9fe7f
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84

View File

@ -701,7 +701,9 @@ void GDScriptSyntaxHighlighter::_update_cache() {
List<StringName> types;
ClassDB::get_class_list(&types);
for (const StringName &E : types) {
class_names[E] = types_color;
if (ClassDB::is_class_exposed(E)) {
class_names[E] = types_color;
}
}
/* User types. */