#include #include "./unregister_capability.hpp" #include "../../protocol/transform/facade.hpp" namespace lsp::providers::client { std::string UnregisterCapability::GetMethod() const { return "client/unregisterCapability"; } std::string UnregisterCapability::GetProviderName() const { return "ClientUnregisterCapability"; } std::string UnregisterCapability::ProvideResponse(const protocol::RequestMessage& request, ExecutionContext& context) { static_cast(context); spdlog::debug("UnregisterCapabilityProvider: Providing response for method {}", request.method); protocol::ResponseMessage response; response.id = request.id; response.result = std::nullopt; std::optional json = transform::Serialize(response); if (!json.has_value()) return BuildErrorResponseMessage(request, protocol::ErrorCodes::kInternalError, "Internal error"); return json.value(); } }