Skip to content

Commit

Permalink
Recognize deprecated built-in classes when used as types
Browse files Browse the repository at this point in the history
  • Loading branch information
Meorge committed Dec 6, 2024
1 parent 37b7b51 commit fcace42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/gdscript/gdscript_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,9 @@ static void _list_available_types(bool p_inherit_only, GDScriptParser::Completio
for (const StringName &E : native_types) {
if (ClassDB::is_class_exposed(E) && !Engine::get_singleton()->has_singleton(E)) {
ScriptLanguage::CodeCompletionOption option(E, ScriptLanguage::CODE_COMPLETION_KIND_CLASS);
if (class_doc_map.has(E)) {
option.deprecated = class_doc_map.get(E).is_deprecated;
}
r_result.insert(option.display, option);
}
}
Expand Down

0 comments on commit fcace42

Please sign in to comment.