Skip to content

Commit d8600d1

Browse files
author
kokobd
committed
fix floskell test
1 parent ba9a761 commit d8600d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hls-floskell-plugin/src/Ide/Plugin/Floskell.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ provider _ideState typ contents fp _ = liftIO $ do
3333
config <- findConfigOrDefault file
3434
let (range, selectedContents) = case typ of
3535
FormatText -> (fullRange contents, contents)
36-
FormatRange r -> (r, extractRange r contents)
36+
FormatRange r -> (normalize r, extractRange r contents)
3737
result = reformat config (Just file) . TL.encodeUtf8 $ TL.fromStrict selectedContents
3838
case result of
3939
Left err -> pure $ Left $ responseError $ T.pack $ "floskellCmd: " ++ err

0 commit comments

Comments
 (0)