Add coloring for completion of vector components

This commit is contained in:
Yuri Rubinsky authored and Yuri Roubinski committed 2023-08-30 21:13:25 +03:00
1 parent f7c48cf803
commit 35802374ac
8 files changed
+34 -5

No files matched your search

+3
View File
@@ -1207,6 +1207,9 @@ static void _find_identifiers_in_base(const GDScriptCompletionIdentifier &p_base
for (const PropertyInfo &E : members) {
if (!String(E.name).contains("/")) {
ScriptLanguage::CodeCompletionOption option(E.name, ScriptLanguage::CODE_COMPLETION_KIND_MEMBER);
if (GDScriptParser::theme_color_names.has(E.name)) {
option.theme_color_name = GDScriptParser::theme_color_names[E.name];
}
r_result.insert(option.display, option);
}
}