Sha256: 7a68705fd526a0c0f8f77e0d7cb9521874e837aa982d174f9326fac9f0cb1597

Contents?: true

Size: 1.25 KB

Versions: 7

Compression:

Stored size: 1.25 KB

Contents

module Steep
  module Server
    module CustomMethods
      module FileLoad
        METHOD = "$/steep/file/load"

        def self.notification(params)
          { method: METHOD, params: params }
        end
      end

      module FileReset
        METHOD = "$/steep/file/reset"

        def self.notification(params)
          { method: METHOD, params: params }
        end
      end

      module TypeCheck
        METHOD = "$/steep/typecheck"

        def self.request(id, params)
          { method: METHOD, id: id, params: params }
        end

        def self.response(id, result)
          { id: id, result: result }
        end
      end

      module TypeCheck__Start
        METHOD = "$/steep/typecheck/start"

        def self.notification(params)
          { method: METHOD, params: params }
        end
      end

      module TypeCheck__Progress
        METHOD = "$/steep/typecheck/progress"

        def self.notification(params)
          { method: METHOD, params: params }
        end
      end

      module Stats
        METHOD = "$/steep/stats"

        def self.request(id)
          { method: METHOD, id: id, params: nil }
        end

        def self.response(id, result)
          { id: id, result: result }
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
steep-1.9.0.dev.1 lib/steep/server/custom_methods.rb
steep-1.8.3 lib/steep/server/custom_methods.rb
steep-1.8.2 lib/steep/server/custom_methods.rb
steep-1.8.1 lib/steep/server/custom_methods.rb
steep-1.8.0 lib/steep/server/custom_methods.rb
steep-1.8.0.pre.2 lib/steep/server/custom_methods.rb
steep-1.8.0.pre.1 lib/steep/server/custom_methods.rb