Files
tsl-devkit/lsp-server/src/provider/text_document/selection_range.cpp
T
2025-09-27 22:23:04 +08:00

29 lines
877 B
C++

#include <spdlog/spdlog.h>
#include "./selection_range.hpp"
#include "../../protocol/transform/facade.hpp"
namespace lsp::provider::text_document
{
std::string SelectionRange::GetMethod() const
{
return "textDocument/selectionRange";
}
std::string SelectionRange::GetProviderName() const
{
return "TextDocumentSelectionRange";
}
std::string SelectionRange::ProvideResponse(const protocol::RequestMessage& request, ExecutionContext& context)
{
spdlog::debug("TextDocumentSelectionRangeProvider: 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
}
}