mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
HackStudio: Support searching symbol declarations in the Locator
The Locator now keeps a cache of the declared symbol in a document. The language client updates that cache whenever it gets an update from the language server about declared symbols. This allows searching for symbol declarations in the Locator, in addition to file names. Closes #5478
This commit is contained in:
parent
a94b5376bc
commit
54bc9114b3
16 changed files with 140 additions and 30 deletions
|
@ -65,6 +65,12 @@ public:
|
|||
String currently_open_file() const { return m_currently_open_file; }
|
||||
void initialize_menubar(GUI::MenuBar&);
|
||||
|
||||
Locator& locator()
|
||||
{
|
||||
VERIFY(m_locator);
|
||||
return *m_locator;
|
||||
}
|
||||
|
||||
private:
|
||||
static String get_full_path_of_serenity_source(const String& file);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue