Sha256: 15956a37cd7ce7700b5d5dfae4069c4c15f7391c7b122c871da153d4cf81bc8a

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

# DO NOT MODIFY. This file is built automatically
# LSP Protocol: vscode-languageserver-protocol/lib/protocol.configuration.d.ts

# rubocop:disable Naming/MethodName

module LSP
  # export interface ConfigurationClientCapabilities {
  #     /**
  #      * The workspace client capabilities
  #      */
  #     workspace?: {
  #         /**
  #         * The client supports `workspace/configuration` requests.
  #         */
  #         configuration?: boolean;
  #     };
  # }
  class ConfigurationClientCapabilities < LSPBase
    attr_accessor :workspace # type: {

    #        /**
    #        * The client supports `workspace/configuration` requests.
    #        */
    #        configuration?: boolean;
    #    }

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

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

  # export interface ConfigurationItem {
  #     /**
  #      * The scope to get the configuration section for.
  #      */
  #     scopeUri?: string;
  #     /**
  #      * The configuration section asked for.
  #      */
  #     section?: string;
  # }
  class ConfigurationItem < LSPBase
    attr_accessor :scopeUri, :section # type: string # type: string

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

    def from_h!(value)
      value = {} if value.nil?
      self.scopeUri = value['scopeUri']
      self.section = value['section']
      self
    end
  end

  # export interface ConfigurationParams {
  #     items: ConfigurationItem[];
  # }
  class ConfigurationParams < LSPBase
    attr_accessor :items # type: ConfigurationItem[]

    def from_h!(value)
      value = {} if value.nil?
      self.items = to_typed_aray(value['items'], ConfigurationItem)
      self
    end
  end
end

# rubocop:enable Style/AsciiComments
# rubocop:enable Naming/MethodName

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-editor-services-2.0.4 lib/lsp/lsp_protocol_configuration.rb