dev: index notify
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user