Class: LSP::WorkDoneProgressClientCapabilities

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

Overview

export interface WorkDoneProgressClientCapabilities {

/**
 * Window specific client capabilities.
 */
window?: {
    /**
     * Whether client supports handling progress notifications. If set servers are allowed to
     * report in `workDoneProgress` property in the request specific server capabilities.
     *
     * Since 3.15.0
     */
    workDoneProgress?: boolean;
};

}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ WorkDoneProgressClientCapabilities

/**

     * Whether client supports handling progress notifications. If set servers are allowed to
     * report in `workDoneProgress` property in the request specific server capabilities.
     *
     * Since 3.15.0
     */
    workDoneProgress?: boolean;
}


33
34
35
36
# File 'lib/lsp/lsp_protocol_progress.rb', line 33

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

Instance Attribute Details

#windowObject

type: {



22
23
24
# File 'lib/lsp/lsp_protocol_progress.rb', line 22

def window
  @window
end

Instance Method Details

#from_h!(value) ⇒ Object



38
39
40
41
42
# File 'lib/lsp/lsp_protocol_progress.rb', line 38

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