Class: DSP::InitializeRequestArguments

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface InitializeRequestArguments {

    /** The ID of the (frontend) client using this adapter. */
    clientID?: string;
    /** The human readable name of the (frontend) client using this adapter. */
    clientName?: string;
    /** The ID of the debug adapter. */
    adapterID: string;
    /** The ISO-639 locale of the (frontend) client using this adapter, e.g. en-US or de-CH. */
    locale?: string;
    /** If true all line numbers are 1-based (default). */
    linesStartAt1?: boolean;
    /** If true all column numbers are 1-based (default). */
    columnsStartAt1?: boolean;
    /** Determines in what format paths are specified. The default is 'path', which is the native format.
        Values: 'path', 'uri', etc.
    */
    pathFormat?: string;
    /** Client supports the optional type attribute for variables. */
    supportsVariableType?: boolean;
    /** Client supports the paging of variables. */
    supportsVariablePaging?: boolean;
    /** Client supports the runInTerminal request. */
    supportsRunInTerminalRequest?: boolean;
    /** Client supports memory references. */
    supportsMemoryReferences?: boolean;
    /** Client supports progress reporting. */
    supportsProgressReporting?: boolean;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ InitializeRequestArguments

Returns a new instance of InitializeRequestArguments.



885
886
887
888
# File 'lib/dsp/dsp_protocol.rb', line 885

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[clientID clientName locale linesStartAt1 columnsStartAt1 pathFormat supportsVariableType supportsVariablePaging supportsRunInTerminalRequest supportsMemoryReferences supportsProgressReporting]
end

Instance Attribute Details

#adapterIDObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def adapterID
  @adapterID
end

#clientIDObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def clientID
  @clientID
end

#clientNameObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def clientName
  @clientName
end

#columnsStartAt1Object

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def columnsStartAt1
  @columnsStartAt1
end

#linesStartAt1Object

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def linesStartAt1
  @linesStartAt1
end

#localeObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def locale
  @locale
end

#pathFormatObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def pathFormat
  @pathFormat
end

#supportsMemoryReferencesObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def supportsMemoryReferences
  @supportsMemoryReferences
end

#supportsProgressReportingObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def supportsProgressReporting
  @supportsProgressReporting
end

#supportsRunInTerminalRequestObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def supportsRunInTerminalRequest
  @supportsRunInTerminalRequest
end

#supportsVariablePagingObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def supportsVariablePaging
  @supportsVariablePaging
end

#supportsVariableTypeObject

type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: string # type: boolean # type: boolean # type: boolean # type: boolean # type: boolean



883
884
885
# File 'lib/dsp/dsp_protocol.rb', line 883

def supportsVariableType
  @supportsVariableType
end

Instance Method Details

#from_h!(value) ⇒ Object



890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
# File 'lib/dsp/dsp_protocol.rb', line 890

def from_h!(value)
  value = {} if value.nil?
  self.clientID = value['clientID']
  self.clientName = value['clientName']
  self.adapterID = value['adapterID']
  self.locale = value['locale']
  self.linesStartAt1 = value['linesStartAt1'] # Unknown type
  self.columnsStartAt1 = value['columnsStartAt1'] # Unknown type
  self.pathFormat = value['pathFormat']
  self.supportsVariableType = value['supportsVariableType'] # Unknown type
  self.supportsVariablePaging = value['supportsVariablePaging'] # Unknown type
  self.supportsRunInTerminalRequest = value['supportsRunInTerminalRequest'] # Unknown type
  self.supportsMemoryReferences = value['supportsMemoryReferences'] # Unknown type
  self.supportsProgressReporting = value['supportsProgressReporting'] # Unknown type
  self
end