Class: LSP::DocumentLinkParams
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentLinkParams extends WorkDoneProgressParams, PartialResultParams
/**
* The document to provide document links for.
*/
textDocument: TextDocumentIdentifier;
Instance Attribute Summary collapse
-
#partialResultToken ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken.
-
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken.
-
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DocumentLinkParams
constructor
A new instance of DocumentLinkParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DocumentLinkParams
Returns a new instance of DocumentLinkParams.
2145 2146 2147 2148 |
# File 'lib/lsp/lsp_protocol.rb', line 2145 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneToken partialResultToken] end |
Instance Attribute Details
#partialResultToken ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken
2143 2144 2145 |
# File 'lib/lsp/lsp_protocol.rb', line 2143 def partialResultToken @partialResultToken end |
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken
2143 2144 2145 |
# File 'lib/lsp/lsp_protocol.rb', line 2143 def textDocument @textDocument end |
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken
2143 2144 2145 |
# File 'lib/lsp/lsp_protocol.rb', line 2143 def workDoneToken @workDoneToken end |
Instance Method Details
#from_h!(value) ⇒ Object
2150 2151 2152 2153 2154 2155 2156 |
# File 'lib/lsp/lsp_protocol.rb', line 2150 def from_h!(value) value = {} if value.nil? self.textDocument = value['textDocument'] # Unknown type self.workDoneToken = value['workDoneToken'] # Unknown type self.partialResultToken = value['partialResultToken'] # Unknown type self end |