mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:47:35 +00:00
HackStudio: Add language client check in identifier click
This commit is contained in:
parent
68f2ef1097
commit
ec063f4f63
1 changed files with 3 additions and 0 deletions
|
@ -529,6 +529,9 @@ void Editor::on_navigatable_link_click(const GUI::TextDocumentSpan& span)
|
||||||
|
|
||||||
void Editor::on_identifier_click(const GUI::TextDocumentSpan& span)
|
void Editor::on_identifier_click(const GUI::TextDocumentSpan& span)
|
||||||
{
|
{
|
||||||
|
if (!m_language_client)
|
||||||
|
return;
|
||||||
|
|
||||||
m_language_client->on_declaration_found = [this](const String& file, size_t line, size_t column) {
|
m_language_client->on_declaration_found = [this](const String& file, size_t line, size_t column) {
|
||||||
HackStudio::open_file(file, line, column);
|
HackStudio::open_file(file, line, column);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue