mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
HackStudio: Store known symbol declarations in ProjectDeclarations
They were previously stored inside the Locator widget. I moved them to the globally visible ProjectDeclarations class so they can also be used by other widgets.
This commit is contained in:
parent
b87791cada
commit
667926df73
8 changed files with 146 additions and 32 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "LanguageClient.h"
|
||||
#include "HackStudio.h"
|
||||
#include "Locator.h"
|
||||
#include "ProjectDeclarations.h"
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <DevTools/HackStudio/LanguageServers/LanguageServerEndpoint.h>
|
||||
|
@ -122,7 +122,7 @@ HashMap<String, NonnullOwnPtr<ServerConnectionWrapper>> ServerConnectionInstance
|
|||
|
||||
void ServerConnection::handle(const Messages::LanguageClient::DeclarationsInDocument& message)
|
||||
{
|
||||
locator().set_declared_symbols(message.filename(), message.declarations());
|
||||
ProjectDeclarations::the().set_declared_symbols(message.filename(), message.declarations());
|
||||
}
|
||||
|
||||
void LanguageClient::search_declaration(const String& path, size_t line, size_t column)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue