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 =
379
379
writeFileUTF8NoNewLineTranslation temp oldContent
380
380
(pflags, _, _) <- runAction' $ useNoFile_ GetHlintSettings
381
381
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`
383
386
[ Handler $ \ e -> return (Left (show (e :: IOException )))
384
387
, Handler $ \ e -> return (Left (show (e :: ErrorCall )))
385
388
]
You can’t perform that action at this time.
0 commit comments