18 lines
495 B
C++
18 lines
495 B
C++
#pragma once
|
|
#include "../base/provider_interface.hpp"
|
|
|
|
namespace lsp::providers::text_document
|
|
{
|
|
class DidChangeProvider : public ILspProvider
|
|
{
|
|
public:
|
|
DidChangeProvider() = default;
|
|
nlohmann::json ProvideResponse(const LspRequest& request) override;
|
|
std::string GetMethod() const override;
|
|
std::string GetProviderName() const override;
|
|
|
|
private:
|
|
void ApplyContentChanges(const std::string& uri, const nlohmann::json& changes);
|
|
};
|
|
}
|