Skip to content

Commit 32bc60c

Browse files
committed
Don't normalize in ormolu
1 parent ae89bbc commit 32bc60c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Ide/Plugin/Ormolu.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ provider _lf ideState typ contents fp _ = do
6565

6666
case typ of
6767
FormatText -> ret <$> fmt contents (mkConf fileOpts fullRegion)
68-
FormatRange r ->
69-
let
70-
Range (Position sl _) (Position el _) = normalize r
71-
in
72-
ret <$> fmt contents (mkConf fileOpts (rangeRegion sl el))
68+
FormatRange (Range (Position sl _) (Position el _)) ->
69+
ret <$> fmt contents (mkConf fileOpts (rangeRegion sl el))
7370
where
7471
ret :: Either OrmoluException T.Text -> Either ResponseError (List TextEdit)
7572
ret (Left err) = Left

0 commit comments

Comments
 (0)