jak-project/lsp/protocol/hover.h
2023-05-21 17:24:23 -04:00

18 lines
427 B
C++

#pragma once
#include "common_types.h"
namespace LSPSpec {
struct Hover {
/// @brief The hover's content
MarkupContent m_contents;
/// @brief An optional range is a range inside a text document that is used to visualize a hover,
/// e.g. by changing the background color.
std::optional<Range> m_range;
};
void to_json(json& j, const Hover& obj);
void from_json(const json& j, Hover& obj);
} // namespace LSPSpec