Class: Solargraph::LanguageServer::Message::TextDocument::Base

Inherits:
Base
  • Object
show all
Includes:
UriHelpers
Defined in:
lib/solargraph/language_server/message/text_document/base.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#error, #host, #id, #method, #params, #request, #result

Instance Method Summary collapse

Methods included from UriHelpers

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

#filenameObject (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_initializeObject


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