correctly honor cmdline --hint:conf:on/off ; correctly show Conf hints in order
This commit is contained in:
parent
96bffadf60
commit
ce36fdc897
6 changed files with 18 additions and 3 deletions
|
|
@ -418,7 +418,10 @@ proc rawMessage*(conf: ConfigRef; msg: TMsgKind, args: openArray[string]) =
|
|||
inc(conf.warnCounter)
|
||||
of hintMin..hintMax:
|
||||
sev = Severity.Hint
|
||||
if not conf.hasHint(msg): return
|
||||
if msg in conf.cmdLineDisabledNotes: return # eg: `--hints:conf:off` passed on cmdline
|
||||
# handle `--hints:off` (regardless of cmdline/cfg file)
|
||||
# handle `--hints:conf:on` on cmdline
|
||||
if not conf.hasHint(msg) and not (optHints in conf.options and msg in conf.cmdLineNotes)): return
|
||||
title = HintTitle
|
||||
color = HintColor
|
||||
if msg != hintUserRaw: kind = HintsToStr[ord(msg) - ord(hintMin)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue