Class: LSP::WorkspaceSymbolParams
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface WorkspaceSymbolParams extends WorkDoneProgressParams, PartialResultParams
/**
* A query string to filter symbols by. Clients may send an empty
* string here to request all symbols.
*/
query: string;
Instance Attribute Summary collapse
-
#partialResultToken ⇒ Object
type: string # type: ProgressToken # type: ProgressToken.
-
#query ⇒ Object
type: string # type: ProgressToken # type: ProgressToken.
-
#workDoneToken ⇒ Object
type: string # type: ProgressToken # type: ProgressToken.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ WorkspaceSymbolParams
constructor
A new instance of WorkspaceSymbolParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ WorkspaceSymbolParams
Returns a new instance of WorkspaceSymbolParams.
1975 1976 1977 1978 |
# File 'lib/lsp/lsp_protocol.rb', line 1975 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneToken partialResultToken] end |
Instance Attribute Details
#partialResultToken ⇒ Object
type: string # type: ProgressToken # type: ProgressToken
1973 1974 1975 |
# File 'lib/lsp/lsp_protocol.rb', line 1973 def partialResultToken @partialResultToken end |
#query ⇒ Object
type: string # type: ProgressToken # type: ProgressToken
1973 1974 1975 |
# File 'lib/lsp/lsp_protocol.rb', line 1973 def query @query end |
#workDoneToken ⇒ Object
type: string # type: ProgressToken # type: ProgressToken
1973 1974 1975 |
# File 'lib/lsp/lsp_protocol.rb', line 1973 def workDoneToken @workDoneToken end |
Instance Method Details
#from_h!(value) ⇒ Object
1980 1981 1982 1983 1984 1985 1986 |
# File 'lib/lsp/lsp_protocol.rb', line 1980 def from_h!(value) value = {} if value.nil? self.query = value['query'] self.workDoneToken = value['workDoneToken'] # Unknown type self.partialResultToken = value['partialResultToken'] # Unknown type self end |