mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LanguageServers/Cpp: Update client asynchronously about symbols
As a document is parsed, the language server updates the client asynchronously about symbol declarations it finds.
This commit is contained in:
parent
71c7597130
commit
a94b5376bc
Notes:
sideshowbarker
2024-07-18 21:52:54 +09:00
Author: https://github.com/itamar8910
Commit: a94b5376bc
Pull-request: https://github.com/SerenityOS/serenity/pull/5543
Issue: https://github.com/SerenityOS/serenity/issues/5478
12 changed files with 83 additions and 19 deletions
|
@ -26,11 +26,20 @@
|
|||
|
||||
#include "AutoCompleteEngine.h"
|
||||
|
||||
AutoCompleteEngine::AutoCompleteEngine(const FileDB& filedb)
|
||||
: m_filedb(filedb)
|
||||
namespace LanguageServers::Cpp {
|
||||
|
||||
AutoCompleteEngine::AutoCompleteEngine(ClientConnection& connection, const FileDB& filedb)
|
||||
: m_connection(connection)
|
||||
, m_filedb(filedb)
|
||||
{
|
||||
}
|
||||
|
||||
AutoCompleteEngine::~AutoCompleteEngine()
|
||||
{
|
||||
}
|
||||
void AutoCompleteEngine::set_declarations_of_document(const String& filename, Vector<GUI::AutocompleteProvider::Declaration>&& declarations)
|
||||
{
|
||||
VERIFY(set_declarations_of_document_callback);
|
||||
set_declarations_of_document_callback(m_connection, filename, move(declarations));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue