class LanguageServer::Protocol::Interface::TextDocumentSyncClientCapabilities

Attributes

attributes[R]

Public Class Methods

new(dynamic_registration: nil, will_save: nil, will_save_wait_until: nil, did_save: nil) click to toggle source
# File lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb, line 5
def initialize(dynamic_registration: nil, will_save: nil, will_save_wait_until: nil, did_save: nil)
  @attributes = {}

  @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration
  @attributes[:willSave] = will_save if will_save
  @attributes[:willSaveWaitUntil] = will_save_wait_until if will_save_wait_until
  @attributes[:didSave] = did_save if did_save

  @attributes.freeze
end

Public Instance Methods

did_save() click to toggle source

The client supports did save notifications.

@return [boolean]

# File lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb, line 46
def did_save
  attributes.fetch(:didSave)
end
dynamic_registration() click to toggle source

Whether text document synchronization supports dynamic registration.

@return [boolean]

# File lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb, line 20
def dynamic_registration
  attributes.fetch(:dynamicRegistration)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb, line 52
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb, line 56
def to_json(*args)
  to_hash.to_json(*args)
end
will_save() click to toggle source

The client supports sending will save notifications.

@return [boolean]

# File lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb, line 28
def will_save
  attributes.fetch(:willSave)
end
will_save_wait_until() click to toggle source

The client supports sending a will save request and waits for a response providing text edits which will be applied to the document before it is saved.

@return [boolean]

# File lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb, line 38
def will_save_wait_until
  attributes.fetch(:willSaveWaitUntil)
end