mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LanguageServers/Cpp: Support jumping to declaration of preprocessor
.. definitions.
This commit is contained in:
parent
7bf6eca9d8
commit
8688259ed9
Notes:
sideshowbarker
2024-07-18 21:25:30 +09:00
Author: https://github.com/itamar8910
Commit: 8688259ed9
Pull-request: https://github.com/SerenityOS/serenity/pull/5755
8 changed files with 43 additions and 10 deletions
|
@ -135,6 +135,7 @@ void ClientConnection::handle(const Messages::LanguageServer::FindDeclaration& m
|
|||
dbgln("could not find declaration");
|
||||
return;
|
||||
}
|
||||
|
||||
dbgln_if(LANGUAGE_SERVER_DEBUG, "declaration location: {} {}:{}", location.value().file, location.value().line, location.value().column);
|
||||
post_message(Messages::LanguageClient::DeclarationLocation(GUI::AutocompleteProvider::ProjectLocation { location.value().file, location.value().line, location.value().column }));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue