mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LanguageServers: Remove ClientConnection dependency
We now no longer need to provide a ClientConnection object to construct AutoCompleteEngine.
This commit is contained in:
parent
687efe6dd6
commit
c49cf23a86
Notes:
sideshowbarker
2024-07-18 18:10:13 +09:00
Author: https://github.com/itamar8910
Commit: c49cf23a86
Pull-request: https://github.com/SerenityOS/serenity/pull/7095
Reviewed-by: https://github.com/awesomekling
12 changed files with 24 additions and 29 deletions
|
@ -8,9 +8,8 @@
|
|||
|
||||
namespace LanguageServers {
|
||||
|
||||
AutoCompleteEngine::AutoCompleteEngine(ClientConnection& connection, const FileDB& filedb, bool should_store_all_declarations)
|
||||
: m_connection(connection)
|
||||
, m_filedb(filedb)
|
||||
AutoCompleteEngine::AutoCompleteEngine(const FileDB& filedb, bool should_store_all_declarations)
|
||||
: m_filedb(filedb)
|
||||
, m_store_all_declarations(should_store_all_declarations)
|
||||
{
|
||||
}
|
||||
|
@ -29,6 +28,6 @@ void AutoCompleteEngine::set_declarations_of_document(const String& filename, Ve
|
|||
}
|
||||
if (m_store_all_declarations)
|
||||
m_all_declarations.set(filename, declarations);
|
||||
set_declarations_of_document_callback(m_connection, filename, move(declarations));
|
||||
set_declarations_of_document_callback(filename, move(declarations));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue