Class: LSP::CodeLensRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface CodeLensRegistrationOptions extends TextDocumentRegistrationOptions, CodeLensOptions { }
Instance Attribute Summary collapse
-
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean # type: boolean.
-
#resolveProvider ⇒ Object
type: DocumentSelector | null # type: boolean # type: boolean.
-
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ CodeLensRegistrationOptions
constructor
A new instance of CodeLensRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ CodeLensRegistrationOptions
Returns a new instance of CodeLensRegistrationOptions.
2094 2095 2096 2097 |
# File 'lib/lsp/lsp_protocol.rb', line 2094 def initialize(initial_hash = nil) super @optional_method_names = %i[resolveProvider workDoneProgress] end |
Instance Attribute Details
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean # type: boolean
2092 2093 2094 |
# File 'lib/lsp/lsp_protocol.rb', line 2092 def documentSelector @documentSelector end |
#resolveProvider ⇒ Object
type: DocumentSelector | null # type: boolean # type: boolean
2092 2093 2094 |
# File 'lib/lsp/lsp_protocol.rb', line 2092 def resolveProvider @resolveProvider end |
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean # type: boolean
2092 2093 2094 |
# File 'lib/lsp/lsp_protocol.rb', line 2092 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
2099 2100 2101 2102 2103 2104 2105 |
# File 'lib/lsp/lsp_protocol.rb', line 2099 def from_h!(value) value = {} if value.nil? self.documentSelector = value['documentSelector'] # Unknown type self.resolveProvider = value['resolveProvider'] # Unknown type self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |