Class: LSP::DocumentOnTypeFormattingParams
- 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
-
#ch ⇒ Object
type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions.
-
#options ⇒ Object
type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions.
-
#position ⇒ Object
type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions.
-
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions.
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#ch ⇒ Object
type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions
2411 2412 2413 |
# File 'lib/lsp/lsp_protocol.rb', line 2411 def ch @ch end |
#options ⇒ Object
type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions
2411 2412 2413 |
# File 'lib/lsp/lsp_protocol.rb', line 2411 def @options end |
#position ⇒ Object
type: TextDocumentIdentifier # type: Position # type: string # type: FormattingOptions
2411 2412 2413 |
# File 'lib/lsp/lsp_protocol.rb', line 2411 def position @position end |
#textDocument ⇒ Object
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. = value['options'] # Unknown type self end |