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 ba9a761 commit d8600d1Copy full SHA for d8600d1
plugins/hls-floskell-plugin/src/Ide/Plugin/Floskell.hs
@@ -33,7 +33,7 @@ provider _ideState typ contents fp _ = liftIO $ do
33
config <- findConfigOrDefault file
34
let (range, selectedContents) = case typ of
35
FormatText -> (fullRange contents, contents)
36
- FormatRange r -> (r, extractRange r contents)
+ FormatRange r -> (normalize r, extractRange r contents)
37
result = reformat config (Just file) . TL.encodeUtf8 $ TL.fromStrict selectedContents
38
case result of
39
Left err -> pure $ Left $ responseError $ T.pack $ "floskellCmd: " ++ err
0 commit comments