diff options
Diffstat (limited to 'Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp')
-rw-r--r-- | Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp index ff294b717f..7f956a1131 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp @@ -126,6 +126,9 @@ Vector<GUI::AutocompleteProvider::Entry> ParserAutoComplete::autocomplete_name(c if (decl.is_function()) { add_name(((Cpp::FunctionDeclaration&)decl).m_name); } + if (decl.is_namespace()) { + add_name(((Cpp::NamespaceDeclaration&)decl).m_name); + } } Vector<GUI::AutocompleteProvider::Entry> suggestions; |