New indexer system (#127)

This commit is contained in:
ykiko
2025-06-01 22:45:38 +08:00
committed by GitHub
parent f7f5634887
commit 3b776ee9f9
23 changed files with 1632 additions and 2718 deletions

View File

@@ -55,7 +55,7 @@ async::Task<> Server::registerCapacity(llvm::StringRef id,
});
}
Server::Server() : indexer(database, config::index), scheduler(converter, database) {
Server::Server() : indexer(database), scheduler(indexer, converter, database) {
onRequests.try_emplace("initialize", &Server::onInitialize);
onRequests.try_emplace("textDocument/semanticTokens/full", &Server::onSemanticToken);
onRequests.try_emplace("textDocument/completion", &Server::onCodeCompletion);