class LanguageServer::Protocol::Interface::WorkDoneProgressParams

Attributes

attributes[R]

Public Class Methods

new(work_done_token: nil) click to toggle source
# File lib/language_server/protocol/interface/work_done_progress_params.rb, line 5
def initialize(work_done_token: nil)
  @attributes = {}

  @attributes[:workDoneToken] = work_done_token if work_done_token

  @attributes.freeze
end

Public Instance Methods

to_hash() click to toggle source
# File lib/language_server/protocol/interface/work_done_progress_params.rb, line 23
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/work_done_progress_params.rb, line 27
def to_json(*args)
  to_hash.to_json(*args)
end
work_done_token() click to toggle source

An optional token that a server can use to report work done progress.

@return [ProgressToken]

# File lib/language_server/protocol/interface/work_done_progress_params.rb, line 17
def work_done_token
  attributes.fetch(:workDoneToken)
end