Class: Solargraph::LanguageServer::Message::TextDocument::SignatureHelp
- Defined in:
- lib/solargraph/language_server/message/text_document/signature_help.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
decode, encode, file_to_uri, uri_to_file
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
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/solargraph/language_server/message/text_document/signature_help.rb', line 8 def process line = params['position']['line'] col = params['position']['character'] suggestions = host.signatures_at(params['textDocument']['uri'], line, col) info = [] suggestions.each do |pin| info.concat pin.overloads.map(&:signature_help) info.push pin.signature_help end set_result({ signatures: info }) rescue FileNotFoundError => e Logging.logger.warn "[#{e.class}] #{e.}" Logging.logger.warn e.backtrace.join("\n") set_result nil end |