File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1290,6 +1290,8 @@ let rec getCompletionsForContextPath ~package ~opens ~rawOpens ~allFiles ~pos
1290
1290
intModulePath;
1291
1291
floatModulePath;
1292
1292
promiseModulePath;
1293
+ listModulePath;
1294
+ resultModulePath;
1293
1295
} =
1294
1296
package.builtInCompletionModules
1295
1297
in
@@ -1307,9 +1309,9 @@ let rec getCompletionsForContextPath ~package ~opens ~rawOpens ~allFiles ~pos
1307
1309
| Path. Pident id when Ident. name id = " int" -> intModulePath
1308
1310
| Path. Pident id when Ident. name id = " float" -> floatModulePath
1309
1311
| Path. Pident id when Ident. name id = " promise" -> promiseModulePath
1310
- | Path. Pident id when Ident. name id = " list" -> [" Belt" ; " List" ]
1312
+ | Path. Pident id when Ident. name id = " list" -> listModulePath
1313
+ | Path. Pident id when Ident. name id = " result" -> resultModulePath
1311
1314
| Path. Pident id when Ident. name id = " lazy_t" -> [" Lazy" ]
1312
- | Path. Pident id when Ident. name id = " result" -> [" Belt" ; " Result" ]
1313
1315
| Path. Pident id when Ident. name id = " char" -> [" Char" ]
1314
1316
| _ -> (
1315
1317
match loop path with
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ let newBsPackage ~rootPath =
98
98
opens_from_bsc_flags
99
99
|> List. find_opt (fun opn ->
100
100
match opn with
101
- | [" ReScriptStdLib " ] -> true
101
+ | [" RescriptStdlib " ] -> true
102
102
| _ -> false )
103
103
|> Option. is_some
104
104
then
@@ -109,6 +109,8 @@ let newBsPackage ~rootPath =
109
109
intModulePath = [" Int" ];
110
110
floatModulePath = [" Float" ];
111
111
promiseModulePath = [" Promise" ];
112
+ listModulePath = [" List" ];
113
+ resultModulePath = [" Result" ];
112
114
}
113
115
else
114
116
{
@@ -118,6 +120,8 @@ let newBsPackage ~rootPath =
118
120
intModulePath = [" Belt" ; " Int" ];
119
121
floatModulePath = [" Belt" ; " Float" ];
120
122
promiseModulePath = [" Js" ; " Promise" ];
123
+ listModulePath = [" Belt" ; " List" ];
124
+ resultModulePath = [" Belt" ; " Result" ];
121
125
});
122
126
})))
123
127
| None -> None )
Original file line number Diff line number Diff line change @@ -368,6 +368,8 @@ type builtInCompletionModules = {
368
368
intModulePath : string list ;
369
369
floatModulePath : string list ;
370
370
promiseModulePath : string list ;
371
+ listModulePath : string list ;
372
+ resultModulePath : string list ;
371
373
}
372
374
373
375
type package = {
You can’t perform that action at this time.
0 commit comments