Class: LSP::DocumentSymbolRegistrationOptions

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface DocumentSymbolRegistrationOptions extends TextDocumentRegistrationOptions, DocumentSymbolOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentSymbolRegistrationOptions

Returns a new instance of DocumentSymbolRegistrationOptions.



1760
1761
1762
1763
# File 'lib/lsp/lsp_protocol.rb', line 1760

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[workDoneProgress]
end

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null # type: boolean



1758
1759
1760
# File 'lib/lsp/lsp_protocol.rb', line 1758

def documentSelector
  @documentSelector
end

#workDoneProgressObject

type: DocumentSelector | null # type: boolean



1758
1759
1760
# File 'lib/lsp/lsp_protocol.rb', line 1758

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1765
1766
1767
1768
1769
1770
# File 'lib/lsp/lsp_protocol.rb', line 1765

def from_h!(value)
  value = {} if value.nil?
  self.documentSelector = value['documentSelector'] # Unknown type
  self.workDoneProgress = value['workDoneProgress'] # Unknown type
  self
end