We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae89bbc commit 32bc60cCopy full SHA for 32bc60c
src/Ide/Plugin/Ormolu.hs
@@ -65,11 +65,8 @@ provider _lf ideState typ contents fp _ = do
65
66
case typ of
67
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))
+ FormatRange (Range (Position sl _) (Position el _)) ->
+ ret <$> fmt contents (mkConf fileOpts (rangeRegion sl el))
73
where
74
ret :: Either OrmoluException T.Text -> Either ResponseError (List TextEdit)
75
ret (Left err) = Left
0 commit comments