mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +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
Notes:
sideshowbarker
2024-07-18 21:52:50 +09:00
Author: https://github.com/itamar8910
Commit: 54bc9114b3
Pull-request: https://github.com/SerenityOS/serenity/pull/5543
Issue: https://github.com/SerenityOS/serenity/issues/5478
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