This repository was archived by the owner on Apr 24, 2021. It is now read-only.
File tree 2 files changed +6
-1
lines changed
examples/example-project/src
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -140,3 +140,6 @@ let abc = "abc"
140
140
141
141
let arr = [1 , 2 , 3 ]
142
142
143
+ let some7 = Some (7 )
144
+
145
+
Original file line number Diff line number Diff line change @@ -514,6 +514,7 @@ let processCompletable ~findItems ~full ~package ~pos ~rawOpens
514
514
~detail: (detail name item) ~docstring ~uri ~pos_lnum )
515
515
| Cpipe (pipe , partialName ) -> (
516
516
let arrayModulePath = [" Js" ; " Array2" ] in
517
+ let optionModulePath = [" Belt" ; " Option" ] in
517
518
let stringModulePath = [" Js" ; " String2" ] in
518
519
let getModulePath path =
519
520
let rec loop (path : Path.t ) =
@@ -523,8 +524,9 @@ let processCompletable ~findItems ~full ~package ~pos ~rawOpens
523
524
| Papply _ -> []
524
525
in
525
526
match path with
526
- | Path. Pident id when Ident. name id = " string" -> stringModulePath
527
527
| Path. Pident id when Ident. name id = " array" -> arrayModulePath
528
+ | Path. Pident id when Ident. name id = " option" -> optionModulePath
529
+ | Path. Pident id when Ident. name id = " string" -> stringModulePath
528
530
| _ -> ( match loop path with _ :: rest -> List. rev rest | [] -> [] )
529
531
in
530
532
let getLhsPath ~pipeId ~partialName =
You can’t perform that action at this time.
0 commit comments