mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:48:11 +00:00
HackStudio: Fix crash when requesting parameter list
When requesting a parameter hint message with `Ctrl + p` in a file that doesn't have a language server, we would crash. Now, rather than verifying that we have a language server, we return early if we don't have one.
This commit is contained in:
parent
d345a3689f
commit
f538545987
1 changed files with 2 additions and 1 deletions
|
@ -689,7 +689,8 @@ void Editor::keydown_event(GUI::KeyEvent& event)
|
|||
|
||||
void Editor::handle_function_parameters_hint_request()
|
||||
{
|
||||
VERIFY(m_language_client);
|
||||
if (!m_language_client)
|
||||
return;
|
||||
|
||||
m_language_client->on_function_parameters_hint_result = [this](Vector<String> const& params, size_t argument_index) {
|
||||
dbgln("on_function_parameters_hint_result");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue