Class: LSP::HoverRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface HoverRegistrationOptions extends TextDocumentRegistrationOptions, HoverOptions { }
Instance Attribute Summary collapse
-
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean.
-
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ HoverRegistrationOptions
constructor
A new instance of HoverRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ HoverRegistrationOptions
Returns a new instance of HoverRegistrationOptions.
1212 1213 1214 1215 |
# File 'lib/lsp/lsp_protocol.rb', line 1212 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneProgress] end |
Instance Attribute Details
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean
1210 1211 1212 |
# File 'lib/lsp/lsp_protocol.rb', line 1210 def documentSelector @documentSelector end |
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean
1210 1211 1212 |
# File 'lib/lsp/lsp_protocol.rb', line 1210 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
1217 1218 1219 1220 1221 1222 |
# File 'lib/lsp/lsp_protocol.rb', line 1217 def from_h!(value) value = {} if value.nil? self.documentSelector = value['documentSelector'] # Unknown type self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |