Implement Indexer (#48)

This commit is contained in:
ykiko
2025-01-22 23:55:33 +08:00
committed by GitHub
parent f475800f7b
commit 6cd23038e4
54 changed files with 1735 additions and 306 deletions

View File

@@ -3,7 +3,7 @@
namespace clice {
Server::Server() : scheduler(database, {}) {
Server::Server() : indexer(config::index, database), scheduler(database, {}) {
addMethod("initialize", &Server::onInitialize);
addMethod("initialized", &Server::onInitialized);
addMethod("shutdown", &Server::onShutdown);
@@ -41,6 +41,8 @@ Server::Server() : scheduler(database, {}) {
addMethod("workspace/didChangeWatchedFiles", &Server::onDidChangeWatchedFiles);
addMethod("index/current", &Server::onIndexCurrent);
addMethod("index/all", &Server::onIndexAll);
addMethod("context/current", &Server::onContextCurrent);
addMethod("context/switch", &Server::onContextSwitch);
addMethod("context/all", &Server::onContextAll);