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

25 lines
568 B
C++

#pragma once
#include "common_types.h"
namespace LSPSpec {
struct DocumentColorParams {
// The text document.
TextDocumentIdentifier textDocument;
};
void to_json(json& j, const DocumentColorParams& obj);
void from_json(const json& j, DocumentColorParams& obj);
struct ColorInformation {
// The range in the document where this color appears.
Range range;
// The actual color value for this color range.
Color color;
};
void to_json(json& j, const ColorInformation& obj);
void from_json(const json& j, ColorInformation& obj);
} // namespace LSPSpec