class Solargraph::LanguageServer::Message::TextDocument::PrepareRename

Public Instance Methods

process() click to toggle source
# File lib/solargraph/language_server/message/text_document/prepare_rename.rb, line 5
def process
  line = params['position']['line']
  col = params['position']['character']
  set_result host.sources.find(params['textDocument']['uri']).cursor_at(Solargraph::Position.new(line, col)).range.to_hash
end