Class: LSP::SignatureHelpRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface SignatureHelpRegistrationOptions extends TextDocumentRegistrationOptions, SignatureHelpOptions { }
Instance Attribute Summary collapse
-
#documentSelector ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean.
-
#retriggerCharacters ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean.
-
#triggerCharacters ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean.
-
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ SignatureHelpRegistrationOptions
constructor
A new instance of SignatureHelpRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ SignatureHelpRegistrationOptions
Returns a new instance of SignatureHelpRegistrationOptions.
1407 1408 1409 1410 |
# File 'lib/lsp/lsp_protocol.rb', line 1407 def initialize(initial_hash = nil) super @optional_method_names = %i[triggerCharacters retriggerCharacters workDoneProgress] end |
Instance Attribute Details
#documentSelector ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean
1405 1406 1407 |
# File 'lib/lsp/lsp_protocol.rb', line 1405 def documentSelector @documentSelector end |
#retriggerCharacters ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean
1405 1406 1407 |
# File 'lib/lsp/lsp_protocol.rb', line 1405 def retriggerCharacters @retriggerCharacters end |
#triggerCharacters ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean
1405 1406 1407 |
# File 'lib/lsp/lsp_protocol.rb', line 1405 def triggerCharacters @triggerCharacters end |
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean
1405 1406 1407 |
# File 'lib/lsp/lsp_protocol.rb', line 1405 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
1412 1413 1414 1415 1416 1417 1418 1419 |
# File 'lib/lsp/lsp_protocol.rb', line 1412 def from_h!(value) value = {} if value.nil? self.documentSelector = value['documentSelector'] # Unknown type self.triggerCharacters = value['triggerCharacters'].map { |val| val } unless value['triggerCharacters'].nil? self.retriggerCharacters = value['retriggerCharacters'].map { |val| val } unless value['retriggerCharacters'].nil? self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |