Class: Solargraph::LanguageServer::Message::TextDocument::Base
- Includes:
- UriHelpers
- Defined in:
- lib/solargraph/language_server/message/text_document/base.rb
Direct Known Subclasses
Completion, Definition, DidChange, DidClose, DidOpen, DidSave, Formatting, Hover, OnTypeFormatting, References, Rename, SignatureHelp
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Attributes inherited from Base
#error, #host, #id, #method, #params, #request, #result
Instance Method Summary collapse
Methods included from UriHelpers
Methods inherited from Base
#initialize, #process, #send_response, #set_error, #set_result
Constructor Details
This class inherits a constructor from Solargraph::LanguageServer::Message::Base
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
8 9 10 |
# File 'lib/solargraph/language_server/message/text_document/base.rb', line 8 def filename @filename end |
Instance Method Details
#post_initialize ⇒ Object
10 11 12 |
# File 'lib/solargraph/language_server/message/text_document/base.rb', line 10 def post_initialize @filename = uri_to_file(params['textDocument']['uri']) end |