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 3300763 commit 65ae9bdCopy full SHA for 65ae9bd
plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs
@@ -379,7 +379,10 @@ applyHint ide nfp mhint =
379
writeFileUTF8NoNewLineTranslation temp oldContent
380
(pflags, _, _) <- runAction' $ useNoFile_ GetHlintSettings
381
exts <- runAction' $ getExtensions pflags nfp
382
- (Right <$> applyRefactorings Nothing commands temp (map show exts)) `catches`
+ -- We have to reparse extensions to remove the invalid ones
383
+ let (enabled, disabled, _invalid) = parseExtensions $ map show exts
384
+ let refactExts = map show $ enabled ++ disabled
385
+ (Right <$> applyRefactorings Nothing commands temp refactExts) `catches`
386
[ Handler $ \e -> return (Left (show (e :: IOException)))
387
, Handler $ \e -> return (Left (show (e :: ErrorCall)))
388
]
0 commit comments