Class: LSP::DocumentLinkRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentLinkRegistrationOptions extends TextDocumentRegistrationOptions, DocumentLinkOptions { }
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) ⇒ DocumentLinkRegistrationOptions
constructor
A new instance of DocumentLinkRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DocumentLinkRegistrationOptions
Returns a new instance of DocumentLinkRegistrationOptions.
2186 2187 2188 2189 |
# File 'lib/lsp/lsp_protocol.rb', line 2186 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
2184 2185 2186 |
# File 'lib/lsp/lsp_protocol.rb', line 2184 def documentSelector @documentSelector end |
#resolveProvider ⇒ Object
type: DocumentSelector | null # type: boolean # type: boolean
2184 2185 2186 |
# File 'lib/lsp/lsp_protocol.rb', line 2184 def resolveProvider @resolveProvider end |
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean # type: boolean
2184 2185 2186 |
# File 'lib/lsp/lsp_protocol.rb', line 2184 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
2191 2192 2193 2194 2195 2196 2197 |
# File 'lib/lsp/lsp_protocol.rb', line 2191 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 |