mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
LanguageServers/cpp: Use parser-based autocomplete engine by default
This commit is contained in:
parent
715933ce8b
commit
c2e5bc442d
Notes:
sideshowbarker
2024-07-18 22:21:32 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/c2e5bc442d3 Pull-request: https://github.com/SerenityOS/serenity/pull/5327
@ -979,6 +979,7 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_set_autocomplete_mode_action
|
||||
auto action = GUI::Action::create_checkable("AutoComplete C++ with Parser", [this](auto& action) {
|
||||
get_language_client<LanguageClients::Cpp::ServerConnection>(project().root_path())->set_autocomplete_mode(action.is_checked() ? "Parser" : "Lexer");
|
||||
});
|
||||
action->set_checked(true);
|
||||
return action;
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ ClientConnection::ClientConnection(NonnullRefPtr<Core::LocalSocket> socket, int
|
||||
: IPC::ClientConnection<LanguageClientEndpoint, LanguageServerEndpoint>(*this, move(socket), client_id)
|
||||
{
|
||||
s_connections.set(client_id, *this);
|
||||
m_autocomplete_engine = make<LexerAutoComplete>(m_filedb);
|
||||
m_autocomplete_engine = make<ParserAutoComplete>(m_filedb);
|
||||
}
|
||||
|
||||
ClientConnection::~ClientConnection()
|
||||
|
Loading…
Reference in New Issue
Block a user