Class: Solargraph::LanguageServer::Message::TextDocument::PrepareRename
- Defined in:
- lib/solargraph/language_server/message/text_document/prepare_rename.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Base
#error, #host, #id, #method, #params, #request, #result
Instance Method Summary collapse
Methods inherited from Base
Methods included from UriHelpers
Methods inherited from Base
#initialize, #post_initialize, #send_response, #set_error, #set_result
Constructor Details
This class inherits a constructor from Solargraph::LanguageServer::Message::Base
Instance Method Details
#process ⇒ Object
3 4 5 6 7 |
# File 'lib/solargraph/language_server/message/text_document/prepare_rename.rb', line 3 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 |