Class: LSP::WorkspaceSymbolParams

Inherits:
LSPBase
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#partialResultTokenObject

type: string # type: ProgressToken # type: ProgressToken



1973
1974
1975
# File 'lib/lsp/lsp_protocol.rb', line 1973

def partialResultToken
  @partialResultToken
end

#queryObject

type: string # type: ProgressToken # type: ProgressToken



1973
1974
1975
# File 'lib/lsp/lsp_protocol.rb', line 1973

def query
  @query
end

#workDoneTokenObject

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