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

namespace lsp::provider::workspace
{
    std::string ApplyEdit::GetMethod() const
    {
        return "workspace/applyEdit";
    }

    std::string ApplyEdit::GetProviderName() const
    {
        return "WorkspaceApplyEdit";
    }

    std::string ApplyEdit::ProvideResponse(const protocol::RequestMessage& request, ExecutionContext& context)
    {
        static_cast<void>(context);
        spdlog::debug("WorkspaceApplyEditProvider: Providing response for method {}", request.method);

        // TODO: Implement the actual request handling logic
        // 1. Parse request parameters
        // 2. Process the request using appropriate services
        // 3. Return formatted response

        return "{}"; // Placeholder response
    }
}
