Skip to content

Commit fd5c019

Browse files
committed
only pick up regular Lident
1 parent 70f85da commit fd5c019

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

analysis/src/CompletionFrontEnd.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ let extractJsxProps ~(compName : Longident.t Location.loc) ~args =
108108

109109
let extractCompletableArgValueInfo exp =
110110
match exp.Parsetree.pexp_desc with
111-
| Pexp_ident {txt} -> Some (Utils.flattenLongIdent txt |> List.hd)
112-
| Pexp_construct ({txt}, _) -> Some (Utils.flattenLongIdent txt |> List.hd)
111+
| Pexp_ident {txt = Lident txt} -> Some txt
112+
| Pexp_construct ({txt = Lident txt}, _) -> Some txt
113113
| _ -> None
114114

115115
let isExprHole exp =

0 commit comments

Comments
 (0)