File tree 5 files changed +16
-7
lines changed
5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Caveats:
35
35
(+) Numbers are just stored as strings
36
36
*)
37
37
38
- module List = Core_list
38
+ module List = Core. List
39
39
40
40
type json =
41
41
| JSON_Object of (string * json ) list
787
787
788
788
module JSet = Set. Make (JsonKey )
789
789
790
- module JMap = MyMap .Make (JsonKey )
790
+ module JMap = Map .Make (JsonKey )
Original file line number Diff line number Diff line change @@ -191,4 +191,4 @@ module JsonKey : Set.OrderedType with type t = json
191
191
192
192
module JSet : Set .S with type elt = json
193
193
194
- module JMap : MyMap .S with type key = json
194
+ module JMap : Map .S with type key = json
Original file line number Diff line number Diff line change 8
8
**)
9
9
10
10
open Hh_json
11
+ module Option = Core. Option
12
+ module Core_list = Core. List
11
13
12
14
(* ***********************************************************************)
13
15
(* * Helpers for parsing & printing **)
@@ -117,7 +119,7 @@ module AdhocJsonHelpers = struct
117
119
118
120
let try_get_val key json =
119
121
let obj = Hh_json. get_object_exn json in
120
- Core_list.Assoc. find obj key
122
+ Core_list.Assoc. find obj key ~equal: String. equal
121
123
122
124
let get_string_val key ?default json =
123
125
let v = try_get_val key json in
Original file line number Diff line number Diff line change 40
40
* entirely.
41
41
*)
42
42
43
+ module SMap = Map. Make (String )
44
+
43
45
type lsp_id =
44
46
| NumberId of int
45
47
| StringId of string
@@ -1024,4 +1026,4 @@ module IdKey = struct
1024
1026
end
1025
1027
1026
1028
module IdSet = Set. Make (IdKey )
1027
- module IdMap = MyMap .Make (IdKey )
1029
+ module IdMap = Map .Make (IdKey )
Original file line number Diff line number Diff line change 7
7
*
8
8
*)
9
9
10
- open Hh_core
10
+ (* open Hh_core *)
11
11
open Lsp
12
12
open Hh_json
13
13
open Hh_json_helpers
14
+ module List = Core. List
15
+ module SMap = struct
16
+ include Map. Make (String )
17
+ let elements = bindings
18
+ end
14
19
15
20
16
21
(* ***********************************************************************)
@@ -949,7 +954,7 @@ let error_of_exn (e: exn) : Lsp.Error.t =
949
954
| Error. ServerNotInitialized message -> {code= - 32002 ; message; data= None ;}
950
955
| Error. Unknown message -> {code= - 32001 ; message; data= None ;}
951
956
| Error. RequestCancelled message -> {code= - 32800 ; message; data= None ;}
952
- | Exit_status. Exit_with code -> {code= - 32001 ; message= Exit_status. to_string code; data= None ;}
957
+ (* | Exit_status.Exit_with code -> {code= -32001; message=Exit_status.to_string code; data=None;} *)
953
958
| _ -> {code= - 32001 ; message= Printexc. to_string e; data= None ;}
954
959
955
960
let print_error (e : Error.t ) (stack : string ) : json =
You can’t perform that action at this time.
0 commit comments