This commit is contained in:
csh 2025-07-05 21:07:27 +08:00
parent e2d88085f0
commit 6fac25552a
1 changed files with 8 additions and 0 deletions

View File

@ -279,6 +279,8 @@ namespace lsp::core
void LspServer::InitializeCoreServices()
{
spdlog::debug("Initializing core services...");
dispatcher_.SetRequestScheduler(&scheduler_);
dispatcher_.RegisterLifecycleCallback(
@ -290,12 +292,18 @@ namespace lsp::core
scheduler_.SetResponseCallback([this](const std::string& response) {
SendResponse(response);
});
spdlog::debug("Core services initialized");
}
void LspServer::InitializeExtensionServices()
{
spdlog::debug("Initializing extension services...");
document_manager_ = std::make_unique<services::DocumentManager>();
dispatcher_.SetDocumentManager(document_manager_.get());
spdlog::debug("Extension services initialized");
}
void LspServer::SendError(const protocol::RequestMessage& request, protocol::ErrorCode code, const std::string& message)