LSP: OpenGOAL Feature Support - Part 1 (#2668)

This commit is contained in:
Tyler Wilding
2023-05-21 16:24:23 -05:00
committed by GitHub
parent d5951c2b11
commit 057ae361bf
109 changed files with 8032 additions and 7956 deletions
-9
View File
@@ -1,14 +1,5 @@
#include "hover.h"
void LSPSpec::to_json(json& j, const MarkupContent& obj) {
j = json{{"kind", obj.m_kind}, {"value", obj.m_value}};
}
void LSPSpec::from_json(const json& j, MarkupContent& obj) {
j.at("kind").get_to(obj.m_kind);
j.at("value").get_to(obj.m_value);
}
void LSPSpec::to_json(json& j, const Hover& obj) {
j = json{{"contents", obj.m_contents}};
if (obj.m_range) {