File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
plugins/hls-pragmas-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,16 @@ suggest dflags diag =
81
81
82
82
suggestDisableWarning :: Diagnostic -> [PragmaEdit ]
83
83
suggestDisableWarning Diagnostic {_code}
84
- | Just (J. InR (T. stripPrefix " -W" -> Just w)) <- _code =
84
+ | Just (J. InR (T. stripPrefix " -W" -> Just w)) <- _code
85
+ , w `notElem` warningBlacklist =
85
86
pure (" Disable \" " <> w <> " \" warnings" , OptGHC w)
86
87
| otherwise = []
87
88
89
+ -- Don't suggest disabling type errors as a solution to all type errors
90
+ warningBlacklist :: [T. Text ]
91
+ -- warningBlacklist = []
92
+ warningBlacklist = [" deferred-type-errors" ]
93
+
88
94
-- ---------------------------------------------------------------------
89
95
90
96
-- | Offer to add a missing Language Pragma to the top of a file.
You can’t perform that action at this time.
0 commit comments