mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-20 13:17:35 +03:00
Don't normalize in ormolu
This commit is contained in:
parent
75f0d6bef2
commit
679e0ecc03
@ -65,11 +65,8 @@ provider _lf ideState typ contents fp _ = do
|
||||
|
||||
case typ of
|
||||
FormatText -> ret <$> fmt contents (mkConf fileOpts fullRegion)
|
||||
FormatRange r ->
|
||||
let
|
||||
Range (Position sl _) (Position el _) = normalize r
|
||||
in
|
||||
ret <$> fmt contents (mkConf fileOpts (rangeRegion sl el))
|
||||
FormatRange (Range (Position sl _) (Position el _)) ->
|
||||
ret <$> fmt contents (mkConf fileOpts (rangeRegion sl el))
|
||||
where
|
||||
ret :: Either OrmoluException T.Text -> Either ResponseError (List TextEdit)
|
||||
ret (Left err) = Left
|
||||
|
Loading…
Reference in New Issue
Block a user