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

namespace lsp::provider::text_document
{
    std::string PublishDiagnostics::GetMethod() const
    {
        return "textDocument/publishDiagnostics";
    }

    std::string PublishDiagnostics::GetProviderName() const
    {
        return "TextDocumentPublishDiagnostics";
    }

    void PublishDiagnostics::HandleNotification(const protocol::NotificationMessage& notification, ExecutionContext& context)
    {
        spdlog::debug("TextDocumentPublishDiagnosticsProvider: 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
        
    }
}
