From 37a16c4144ef072ca68deca7878bc1c6bbc27983 Mon Sep 17 00:00:00 2001 From: Petr Date: Wed, 13 Sep 2023 23:40:05 +0200 Subject: [PATCH] Fix a bug in a code fix --- .../CodeFixes/UseMutationWhenValueIsMutable.fs | 6 +++++- .../CodeFixes/UseMutationWhenValueIsMutableTests.fs | 13 +++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/vsintegration/src/FSharp.Editor/CodeFixes/UseMutationWhenValueIsMutable.fs b/vsintegration/src/FSharp.Editor/CodeFixes/UseMutationWhenValueIsMutable.fs index 27ad14755a2..e4f6e595252 100644 --- a/vsintegration/src/FSharp.Editor/CodeFixes/UseMutationWhenValueIsMutable.fs +++ b/vsintegration/src/FSharp.Editor/CodeFixes/UseMutationWhenValueIsMutable.fs @@ -35,7 +35,11 @@ type internal UseMutationWhenValueIsMutableCodeFixProvider [] -let ``Doesn't fix unrelated FS0020`` () = - let code = - """ +[] +[] +[] +let ``Doesn't fix unrelated FS0020`` code = let expected = None let actual = codeFix |> tryFix code Auto