Skip to content

Commit

Permalink
Pass in proper constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Nov 16, 2023
1 parent be0375a commit ec0de39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FsAutoComplete/CodeFixes/AdjustConstant.fs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let private tryFindConstant ast pos =
let rec findConst range constant =
match constant with
| SynConst.Measure(constant = c; constantRange = constantRange) when rangeContainsPos constantRange pos ->
findConst constantRange constant
findConst constantRange c
| _ -> (range, constant)

SyntaxTraversal.Traverse(
Expand Down

0 comments on commit ec0de39

Please sign in to comment.