mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
CppLanguageServer: Only re-create DocumentData in file_opened if needed
This commit is contained in:
parent
84e41c4565
commit
9408013177
Notes:
sideshowbarker
2024-07-18 18:04:57 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/9408013177c Pull-request: https://github.com/SerenityOS/serenity/pull/7153
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user