class Solargraph::LanguageServer::Message::TextDocument::DocumentHighlight
Public Instance Methods
process()
click to toggle source
# File lib/solargraph/language_server/message/text_document/document_highlight.rb, line 5 def process locs = host.references_from(params['textDocument']['uri'], params['position']['line'], params['position']['character'], strip: true, only: true) result = locs.map do |loc| { range: loc.range.to_hash, kind: 1 } end set_result result end