File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
plugins/hls-hlint-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,10 @@ applyHint ide nfp mhint =
380
380
writeFileUTF8NoNewLineTranslation temp oldContent
381
381
(pflags, _, _) <- runAction' $ useNoFile_ GetHlintSettings
382
382
exts <- runAction' $ getExtensions pflags nfp
383
- (Right <$> applyRefactorings Nothing commands temp (map show exts)) `catches`
383
+ -- We have to reparse extensions to remove the invalid ones
384
+ let (enabled, disabled, _invalid) = parseExtensions $ map show exts
385
+ let refactExts = map show $ enabled ++ disabled
386
+ (Right <$> applyRefactorings Nothing commands temp refactExts) `catches`
384
387
[ Handler $ \ e -> return (Left (show (e :: IOException )))
385
388
, Handler $ \ e -> return (Left (show (e :: ErrorCall )))
386
389
]
You can’t perform that action at this time.
0 commit comments