Class: LSP::DocumentOnTypeFormattingParams

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface DocumentOnTypeFormattingParams

/**
 * The document to format.
 */
textDocument: TextDocumentIdentifier;
/**
 * The position at which this request was send.
 */
position: Position;
/**
 * The character that has been typed.
 */
ch: string;
/**
 * The format options.
 */
options: FormattingOptions;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#chObject

type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions



2411
2412
2413
# File 'lib/lsp/lsp_protocol.rb', line 2411

def ch
  @ch
end

#optionsObject

type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions



2411
2412
2413
# File 'lib/lsp/lsp_protocol.rb', line 2411

def options
  @options
end

#positionObject

type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions



2411
2412
2413
# File 'lib/lsp/lsp_protocol.rb', line 2411

def position
  @position
end

#textDocumentObject

type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions



2411
2412
2413
# File 'lib/lsp/lsp_protocol.rb', line 2411

def textDocument
  @textDocument
end

Instance Method Details

#from_h!(value) ⇒ Object



2413
2414
2415
2416
2417
2418
2419
2420
# File 'lib/lsp/lsp_protocol.rb', line 2413

def from_h!(value)
  value = {} if value.nil?
  self.textDocument = value['textDocument'] # Unknown type
  self.position = value['position'] # Unknown type
  self.ch = value['ch']
  self.options = value['options'] # Unknown type
  self
end