1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 22:35:07 +00:00

HackStudio: Do not change the cursor in the LSP autocomplete request

The C++ completion somehow depends on this, so move that behaviour into
the C++ language server instead.
This commit is contained in:
AnotherTest 2020-10-04 11:16:13 +03:30 committed by Andreas Kling
parent 9e73b0b696
commit 34039d6639
2 changed files with 2 additions and 2 deletions

View file

@ -497,7 +497,7 @@ Optional<Editor::AutoCompleteRequestData> Editor::get_autocomplete_request_data(
if (!wrapper().editor().m_language_client)
return {};
return Editor::AutoCompleteRequestData { { cursor().line(), cursor().column() > 0 ? cursor().column() - 1 : 0 } };
return Editor::AutoCompleteRequestData { cursor() };
}
void Editor::update_autocomplete(const AutoCompleteRequestData& data)