Skip to content

Commit 9524dfa

Browse files
committed
always restore jsx context
1 parent 7fbddfd commit 9524dfa

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
@@ -1378,8 +1378,8 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor ~text =
13781378
scope := oldScope;
13791379
processed := true
13801380
| _ -> ());
1381-
if not !processed then Ast_iterator.default_iterator.expr iterator expr
1382-
else inJsxContext := oldInJsxContext
1381+
if not !processed then Ast_iterator.default_iterator.expr iterator expr;
1382+
inJsxContext := oldInJsxContext
13831383
in
13841384
let typ (iterator : Ast_iterator.iterator) (core_type : Parsetree.core_type) =
13851385
if core_type.ptyp_loc |> Loc.hasPos ~pos:posNoWhite then (

0 commit comments

Comments
 (0)