add log
This commit is contained in:
parent
e2d88085f0
commit
6fac25552a
|
|
@ -279,6 +279,8 @@ namespace lsp::core
|
||||||
|
|
||||||
void LspServer::InitializeCoreServices()
|
void LspServer::InitializeCoreServices()
|
||||||
{
|
{
|
||||||
|
spdlog::debug("Initializing core services...");
|
||||||
|
|
||||||
dispatcher_.SetRequestScheduler(&scheduler_);
|
dispatcher_.SetRequestScheduler(&scheduler_);
|
||||||
|
|
||||||
dispatcher_.RegisterLifecycleCallback(
|
dispatcher_.RegisterLifecycleCallback(
|
||||||
|
|
@ -290,12 +292,18 @@ namespace lsp::core
|
||||||
scheduler_.SetResponseCallback([this](const std::string& response) {
|
scheduler_.SetResponseCallback([this](const std::string& response) {
|
||||||
SendResponse(response);
|
SendResponse(response);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
spdlog::debug("Core services initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LspServer::InitializeExtensionServices()
|
void LspServer::InitializeExtensionServices()
|
||||||
{
|
{
|
||||||
|
spdlog::debug("Initializing extension services...");
|
||||||
|
|
||||||
document_manager_ = std::make_unique<services::DocumentManager>();
|
document_manager_ = std::make_unique<services::DocumentManager>();
|
||||||
dispatcher_.SetDocumentManager(document_manager_.get());
|
dispatcher_.SetDocumentManager(document_manager_.get());
|
||||||
|
|
||||||
|
spdlog::debug("Extension services initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LspServer::SendError(const protocol::RequestMessage& request, protocol::ErrorCode code, const std::string& message)
|
void LspServer::SendError(const protocol::RequestMessage& request, protocol::ErrorCode code, const std::string& message)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue