class Solargraph::LanguageServer::Message::TextDocument::Definition
def require_location
def require_location # @todo Terrible hack lib = host.library_for(params['textDocument']['uri']) rloc = Solargraph::Location.new(uri_to_file(params['textDocument']['uri']), Solargraph::Range.from_to(@line, @column, @line, @column)) dloc = lib.locate_ref(rloc) return nil if dloc.nil? [ { uri: file_to_uri(dloc.filename), range: dloc.range.to_hash } ] end