mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
HackStudio+CppLanguageServer: Remove lexer-based autocomplete engine
The parser-based autocomplete engine is at a point where it's stable enough that I don't think there's a need for the lexer-based alternative anymore.
This commit is contained in:
parent
ddb278ab85
commit
b1531b78f6
11 changed files with 0 additions and 156 deletions
|
@ -898,8 +898,6 @@ void HackStudioWidget::create_project_menubar(GUI::Menubar& menubar)
|
|||
auto& project_menu = menubar.add_menu("&Project");
|
||||
project_menu.add_action(*m_new_file_action);
|
||||
project_menu.add_action(*m_new_directory_action);
|
||||
project_menu.add_separator();
|
||||
project_menu.add_action(*create_set_autocomplete_mode_action());
|
||||
}
|
||||
|
||||
void HackStudioWidget::create_edit_menubar(GUI::Menubar& menubar)
|
||||
|
@ -1000,15 +998,6 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_stop_action()
|
|||
return action;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
void HackStudioWidget::initialize_menubar(GUI::Menubar& menubar)
|
||||
{
|
||||
create_file_menubar(menubar);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue