diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp index 7f956a11314..1b029383861 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp @@ -328,7 +328,7 @@ void ParserAutoComplete::on_edit(const String& file) void ParserAutoComplete::file_opened([[maybe_unused]] const String& file) { - set_document_data(file, create_document_data_for(file)); + get_or_create_document_data(file); } Optional ParserAutoComplete::find_declaration_of(const String& filename, const GUI::TextPosition& identifier_position)