mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-29 13:42:00 +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:
parent
9e73b0b696
commit
34039d6639
Notes:
sideshowbarker
2024-07-19 02:03:12 +09:00
Author: https://github.com/alimpfard
Commit: 34039d6639
Pull-request: https://github.com/SerenityOS/serenity/pull/3675
Reviewed-by: https://github.com/awesomekling
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ void ClientConnection::handle(const Messages::LanguageServer::AutoCompleteSugges
|
|||
return;
|
||||
}
|
||||
|
||||
auto suggestions = AutoComplete::get_suggestions(document->text(), { (size_t)message.cursor_line(), (size_t)message.cursor_column() });
|
||||
auto suggestions = AutoComplete::get_suggestions(document->text(), { (size_t)message.cursor_line(), (size_t)max(message.cursor_column(), message.cursor_column() - 1) });
|
||||
post_message(Messages::LanguageClient::AutoCompleteSuggestions(move(suggestions)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue