Skip to content

Commit

Permalink
CppLanguageServer: Only re-create DocumentData in file_opened if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
itamar8910 authored and awesomekling committed May 15, 2021
1 parent 84e41c4 commit 9408013
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<GUI::AutocompleteProvider::ProjectLocation> ParserAutoComplete::find_declaration_of(const String& filename, const GUI::TextPosition& identifier_position)
Expand Down

0 comments on commit 9408013

Please sign in to comment.