1. let send_string j =
  2. raise (DisplayOutput.Completion j)
  3. let send_json json =
  4. send_string (string_of_json json)
  5. class request_handler com report_times (id,name,params) = object(self)
  6. method send_error jl =
  7. send_json (JsonRpc.error id 0 ~data:(Some (JArray jl)) "Compiler error")
  8. end