Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Return a standards-compliant :textDocument/documentHighlight reply #683

Merged
merged 1 commit into from
May 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/messages/text_document_document_highlight.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ struct Handler_TextDocumentDocumentHighlight
highlight.kind = lsDocumentHighlightKind::Read;
else
highlight.kind = lsDocumentHighlightKind::Text;
highlight.role = use.role;
out.result.push_back(highlight);
}
});
Expand Down
5 changes: 1 addition & 4 deletions src/symbol.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ struct lsDocumentHighlight {

// The highlight kind, default is DocumentHighlightKind.Text.
lsDocumentHighlightKind kind = lsDocumentHighlightKind::Text;

// cquery extension
Role role = Role::None;
};
MAKE_REFLECT_STRUCT(lsDocumentHighlight, range, kind, role);
MAKE_REFLECT_STRUCT(lsDocumentHighlight, range, kind);

struct lsSymbolInformation {
std::string_view name;
Expand Down