mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +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
|
@ -37,9 +37,12 @@ namespace HackStudio {
|
|||
GUI::TextEditor& current_editor();
|
||||
void open_file(const String&);
|
||||
RefPtr<EditorWrapper> current_editor_wrapper();
|
||||
void open_file(const String&);
|
||||
void open_file(const String&, size_t line, size_t column);
|
||||
Project& project();
|
||||
String currently_open_file();
|
||||
void set_current_editor_wrapper(RefPtr<EditorWrapper>);
|
||||
|
||||
class Locator;
|
||||
Locator& locator();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue