We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d73aaa6 commit ab7f57bCopy full SHA for ab7f57b
plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs
@@ -446,6 +446,8 @@ diagnosticToCodeActions dynFlags fileContents pluginId documentId diagnostic
446
Nothing
447
448
= catMaybes
449
+ -- Applying the hint is marked preferred because it addresses the underlying error.
450
+ -- Disabling the rule isn't, because less often used and configuration can be adapted.
451
[ if | isHintApplicable
452
, let applyHintTitle = "Apply hint \"" <> hint <> "\""
453
applyHintArguments = [toJSON (AOP (documentId ^. LSP.uri) start hint)]
0 commit comments