class LanguageServer::Protocol::Interface::TextDocumentSyncOptions

def change

Returns:
  • (TextDocumentSyncKind) -
def change
  attributes.fetch(:change)
end

def initialize(open_close: nil, change: nil, will_save: nil, will_save_wait_until: nil, save: nil)

def initialize(open_close: nil, change: nil, will_save: nil, will_save_wait_until: nil, save: nil)
  @attributes = {}
  @attributes[:openClose] = open_close if open_close
  @attributes[:change] = change if change
  @attributes[:willSave] = will_save if will_save
  @attributes[:willSaveWaitUntil] = will_save_wait_until if will_save_wait_until
  @attributes[:save] = save if save
  @attributes.freeze
end

def open_close

Returns:
  • (boolean) -
def open_close
  attributes.fetch(:openClose)
end

def save

Returns:
  • (boolean | SaveOptions) -
def save
  attributes.fetch(:save)
end

def to_hash

def to_hash
  attributes
end

def to_json(*args)

def to_json(*args)
  to_hash.to_json(*args)
end

def will_save

Returns:
  • (boolean) -
def will_save
  attributes.fetch(:willSave)
end

def will_save_wait_until

Returns:
  • (boolean) -
def will_save_wait_until
  attributes.fetch(:willSaveWaitUntil)
end