File tree Expand file tree Collapse file tree 3 files changed +69
-157
lines changed Expand file tree Collapse file tree 3 files changed +69
-157
lines changed Original file line number Diff line number Diff line change @@ -1029,30 +1029,11 @@ and getCompletionsForContextPath ~debug ~full ~opens ~rawOpens ~pos ~env ~exact
1029
1029
|> completionsGetTypeEnv2 ~debug ~full ~opens ~raw Opens ~pos
1030
1030
in
1031
1031
match mainTypeCompletionEnv with
1032
- | None -> (
1032
+ | None ->
1033
1033
if Debug. verbose () then
1034
1034
Printf. printf
1035
- " [dot_completion] Could not extract main type completion env. \
1036
- Checking for extracted type.\n " ;
1037
-
1038
- match
1039
- completionsFromCtxPath
1040
- |> completionsGetCompletionType2 ~debug ~full ~opens ~raw Opens ~pos
1041
- with
1042
- | Some (ExtractedType typ , env ) -> (
1043
- if Debug. verbose () then
1044
- Printf. printf " [dot_completion] Found extracted type\n " ;
1045
-
1046
- match typ with
1047
- | Trecord {fields; definition} ->
1048
- fields
1049
- |> DotCompletionUtils. filterRecordFields ~env ~prefix: fieldName ~exact
1050
- ~record AsString:
1051
- (match definition with
1052
- | `NameOnly name -> " type " ^ name
1053
- | `TypeExpr t -> Shared. typeToString t)
1054
- | _ -> [] )
1055
- | None | Some (TypeExpr _ , _ ) -> [] )
1035
+ " [dot_completion] Could not extract main type completion env.\n " ;
1036
+ []
1056
1037
| Some (typ , env ) ->
1057
1038
if Debug. verbose () then
1058
1039
Printf. printf " [dot_completion] env module path: %s, type: %s\n "
Original file line number Diff line number Diff line change @@ -54,9 +54,6 @@ module Div = {
54
54
// let _ = <div onMouseEnter={event => { let btn = event->JsxEvent.Mouse.button->Belt.Int.toString->Js.String2.split("/"); btn->ma }} />
55
55
// ^com
56
56
57
- // let x: someRecord = {name: "Hello", age: 123}; x.
58
- // ^com
59
-
60
57
type someVariant = One | Two | Three (int , string )
61
58
type somePolyVariant = [#one | #two | #three (int , string )]
62
59
type someNestedRecord = {someRecord : someRecord }
@@ -115,10 +112,6 @@ type otherNestedRecord = {
115
112
// let x: otherNestedRecord; switch x { | {optRecord:Some({name})} => name->slic }
116
113
// ^com
117
114
118
- // Follow arrays
119
- // let x: array<otherNestedRecord>; switch x { | [inner] => inner.s }
120
- // ^com
121
-
122
115
// Infer top level return
123
116
// let x = 123; switch x { | 123 => () | v => v->toSt }
124
117
// ^com
You can’t perform that action at this time.
0 commit comments