#include <spdlog/spdlog.h>
#include "./log_message.hpp"
#include "../../protocol/transform/facade.hpp"

namespace lsp::provider::window
{
    std::string LogMessage::GetMethod() const
    {
        return "window/logMessage";
    }

    std::string LogMessage::GetProviderName() const
    {
        return "WindowLogMessage";
    }

    void LogMessage::HandleNotification(const protocol::NotificationMessage& notification, ExecutionContext& context)
    {
        static_cast<void>(context);
        spdlog::debug("WindowLogMessageProvider: Handling notification for method {}", notification.method);

        // TODO: Implement the actual notification handling logic
        // 1. Parse notification parameters
        // 2. Update appropriate services/state
        // 3. Trigger any necessary side effects
    }
}
