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 @@ -379,7 +379,10 @@ applyHint ide nfp mhint =
379379 writeFileUTF8NoNewLineTranslation temp oldContent
380380 (pflags, _, _) <- runAction' $ useNoFile_ GetHlintSettings
381381 exts <- runAction' $ getExtensions pflags nfp
382- (Right <$> applyRefactorings Nothing commands temp (map show exts)) `catches`
382+ -- 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`
383386 [ Handler $ \ e -> return (Left (show (e :: IOException )))
384387 , Handler $ \ e -> return (Left (show (e :: ErrorCall )))
385388 ]
You can’t perform that action at this time.
0 commit comments