mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
improve log messages: add info
This commit is contained in:
parent
b27b1a6d59
commit
7c1d53b186
@ -59,7 +59,7 @@ constexpr Position documentEnd{
|
||||
std::numeric_limits<decltype(Position::character)>::max()};
|
||||
|
||||
inline std::ostream &operator<<(std::ostream &s, const Position pos) {
|
||||
s << "{line: " << pos.line << ", end: " << pos.character;
|
||||
s << "{line: " << pos.line << ", end: " << pos.character << "}";
|
||||
return s;
|
||||
}
|
||||
inline std::ostream &operator<<(std::ostream &s, const lsRange &range) {
|
||||
@ -69,12 +69,12 @@ inline std::ostream &operator<<(std::ostream &s, const lsRange &range) {
|
||||
|
||||
void MessageHandler::textDocument_semanticTokensRange(
|
||||
SemanticTokensRangeParams ¶m, ReplyOnce &reply) {
|
||||
const std::string path = param.textDocument.uri.getPath();
|
||||
if (param.range.start == documentBegin && param.range.end == documentEnd)
|
||||
LOG_S(INFO) << "SemanticToken for all document";
|
||||
LOG_S(INFO) << "SemanticToken for all document of " << path;
|
||||
else
|
||||
LOG_S(INFO) << "SemanticToken for range " << param.range.start;
|
||||
LOG_S(INFO) << "SemanticToken for range " << param.range.start << " of " << path;
|
||||
|
||||
std::string path = param.textDocument.uri.getPath();
|
||||
WorkingFile *wfile = wfiles->getFile(path);
|
||||
if (!wfile) {
|
||||
reply.notOpened(path);
|
||||
|
Loading…
Reference in New Issue
Block a user