@@ -13,7 +13,7 @@ let getCompletions ~debug ~path ~pos ~currentFile ~forHover =
13
13
Printf. printf " Completable: %s\n "
14
14
(SharedTypes.Completable. toString completable);
15
15
(* Only perform expensive ast operations if there are completables *)
16
- match Cmt. fullFromPath ~path with
16
+ match Cmt. loadFullCmtFromPath ~path with
17
17
| None -> []
18
18
| Some {file; package} ->
19
19
let env = SharedTypes.QueryEnv. fromFile file in
@@ -46,7 +46,7 @@ let codeLens ~path ~debug =
46
46
47
47
let hover ~path ~pos ~currentFile ~debug ~supportsMarkdownLinks =
48
48
let result =
49
- match Cmt. fullFromPath ~path with
49
+ match Cmt. loadFullCmtFromPath ~path with
50
50
| None -> Protocol. null
51
51
| Some full -> (
52
52
match References. getLocItem ~full ~pos ~debug with
@@ -102,7 +102,7 @@ let codeAction ~path ~pos ~currentFile ~debug =
102
102
103
103
let definition ~path ~pos ~debug =
104
104
let locationOpt =
105
- match Cmt. fullFromPath ~path with
105
+ match Cmt. loadFullCmtFromPath ~path with
106
106
| None -> None
107
107
| Some full -> (
108
108
match References. getLocItem ~full ~pos ~debug with
@@ -138,7 +138,7 @@ let definition ~path ~pos ~debug =
138
138
139
139
let typeDefinition ~path ~pos ~debug =
140
140
let maybeLocation =
141
- match Cmt. fullFromPath ~path with
141
+ match Cmt. loadFullCmtFromPath ~path with
142
142
| None -> None
143
143
| Some full -> (
144
144
match References. getLocItem ~full ~pos ~debug with
@@ -157,7 +157,7 @@ let typeDefinition ~path ~pos ~debug =
157
157
158
158
let references ~path ~pos ~debug =
159
159
let allLocs =
160
- match Cmt. fullFromPath ~path with
160
+ match Cmt. loadFullCmtFromPath ~path with
161
161
| None -> []
162
162
| Some full -> (
163
163
match References. getLocItem ~full ~pos ~debug with
@@ -183,7 +183,7 @@ let references ~path ~pos ~debug =
183
183
184
184
let rename ~path ~pos ~newName ~debug =
185
185
let result =
186
- match Cmt. fullFromPath ~path with
186
+ match Cmt. loadFullCmtFromPath ~path with
187
187
| None -> Protocol. null
188
188
| Some full -> (
189
189
match References. getLocItem ~full ~pos ~debug with
0 commit comments