dev: index notify

This commit is contained in:
Myriad-Dreamin
2026-01-26 17:32:25 +08:00
parent 044e4c4b27
commit 44a4bd4107

View File

@@ -114,6 +114,9 @@ async::Task<json::Value> Server::on_initialize(proto::InitializeParams params) {
}
async::Task<> Server::on_initialized(proto::InitializedParams) {
// emit indexing notification
notify("clice/willIndex", {});
/// Run initialized hooks.
for(auto& hook: initialized_hooks) {
co_await hook();
@@ -122,6 +125,9 @@ async::Task<> Server::on_initialized(proto::InitializedParams) {
indexer.load_from_disk();
co_await indexer.index_all();
// emit indexed notification
notify("clice/didIndex", {});
co_return;
}