lib/steep/server/custom_methods.rb in steep-1.9.0.dev.1 vs lib/steep/server/custom_methods.rb in steep-1.9.0.dev.2

- old
+ new

@@ -27,10 +27,18 @@ def self.response(id, result) { id: id, result: result } end end + module TypeCheckGroups + METHOD = "$/steep/typecheck/groups" + + def self.notification(params) + { method: METHOD, params: params } + end + end + module TypeCheck__Start METHOD = "$/steep/typecheck/start" def self.notification(params) { method: METHOD, params: params } @@ -49,9 +57,17 @@ 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 + + module Groups + METHOD = "$/steep/groups" def self.response(id, result) { id: id, result: result } end end