Class: LSP::CompletionRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface CompletionRegistrationOptions extends TextDocumentRegistrationOptions, CompletionOptions { }
Instance Attribute Summary collapse
-
#allCommitCharacters ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean.
-
#documentSelector ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean.
-
#resolveProvider ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean.
-
#triggerCharacters ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean.
-
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ CompletionRegistrationOptions
constructor
A new instance of CompletionRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ CompletionRegistrationOptions
Returns a new instance of CompletionRegistrationOptions.
1128 1129 1130 1131 |
# File 'lib/lsp/lsp_protocol.rb', line 1128 def initialize(initial_hash = nil) super @optional_method_names = i[triggerCharacters allCommitCharacters resolveProvider workDoneProgress] end |
Instance Attribute Details
#allCommitCharacters ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean
1126 1127 1128 |
# File 'lib/lsp/lsp_protocol.rb', line 1126 def allCommitCharacters @allCommitCharacters end |
#documentSelector ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean
1126 1127 1128 |
# File 'lib/lsp/lsp_protocol.rb', line 1126 def documentSelector @documentSelector end |
#resolveProvider ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean
1126 1127 1128 |
# File 'lib/lsp/lsp_protocol.rb', line 1126 def resolveProvider @resolveProvider end |
#triggerCharacters ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean
1126 1127 1128 |
# File 'lib/lsp/lsp_protocol.rb', line 1126 def triggerCharacters @triggerCharacters end |
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: string[] # type: string[] # type: boolean # type: boolean
1126 1127 1128 |
# File 'lib/lsp/lsp_protocol.rb', line 1126 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
1133 1134 1135 1136 1137 1138 1139 1140 1141 |
# File 'lib/lsp/lsp_protocol.rb', line 1133 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.allCommitCharacters = value['allCommitCharacters'].map { |val| val } unless value['allCommitCharacters'].nil? self.resolveProvider = value['resolveProvider'] # Unknown type self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |