Class: LSP::CodeLensParams
Overview
export interface CodeLensParams extends WorkDoneProgressParams, PartialResultParams
/**
* The document to request code lens 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) ⇒ CodeLensParams
constructor
A new instance of CodeLensParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ CodeLensParams
Returns a new instance of CodeLensParams.
2053 2054 2055 2056 |
# File 'lib/lsp/lsp_protocol.rb', line 2053 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneToken partialResultToken] end |
Instance Attribute Details
#partialResultToken ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken
2051 2052 2053 |
# File 'lib/lsp/lsp_protocol.rb', line 2051 def partialResultToken @partialResultToken end |
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken
2051 2052 2053 |
# File 'lib/lsp/lsp_protocol.rb', line 2051 def textDocument @textDocument end |
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken
2051 2052 2053 |
# File 'lib/lsp/lsp_protocol.rb', line 2051 def workDoneToken @workDoneToken end |
Instance Method Details
#from_h!(value) ⇒ Object
2058 2059 2060 2061 2062 2063 2064 |
# File 'lib/lsp/lsp_protocol.rb', line 2058 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 |