mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
HackStudio: Add language client check in identifier click
This commit is contained in:
parent
68f2ef1097
commit
ec063f4f63
Notes:
sideshowbarker
2024-07-18 21:35:26 +09:00
Author: https://github.com/minhbq-99
Commit: ec063f4f63
Pull-request: https://github.com/SerenityOS/serenity/pull/5703
Issue: https://github.com/SerenityOS/serenity/issues/5568
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)
|
||||
{
|
||||
if (!m_language_client)
|
||||
return;
|
||||
|
||||
m_language_client->on_declaration_found = [this](const String& file, size_t line, size_t column) {
|
||||
HackStudio::open_file(file, line, column);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue