Class: Solargraph::LanguageServer::Message::TextDocument::Base
- Includes:
- UriHelpers
- Defined in:
- lib/solargraph/language_server/message/text_document/base.rb
Direct Known Subclasses
CodeAction, Completion, Definition, DidChange, DidClose, DidOpen, DidSave, DocumentHighlight, FoldingRange, Formatting, Hover, OnTypeFormatting, PrepareRename, 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
decode, encode, file_to_uri, uri_to_file
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.
10 11 12 |
# File 'lib/solargraph/language_server/message/text_document/base.rb', line 10 def filename @filename end |
Instance Method Details
#post_initialize ⇒ Object
12 13 14 |
# File 'lib/solargraph/language_server/message/text_document/base.rb', line 12 def post_initialize @filename = uri_to_file(params['textDocument']['uri']) end |