nimsuggest: bugfix: don't intertwine errors and suggestions
This commit is contained in:
parent
5d125ca716
commit
d9ad6465af
1 changed files with 3 additions and 0 deletions
|
|
@ -155,6 +155,9 @@ proc execute(cmd: IdeCmd, file, dirtyfile: string, line, col: int;
|
||||||
if cmd == ideChk:
|
if cmd == ideChk:
|
||||||
msgs.structuredErrorHook = errorHook
|
msgs.structuredErrorHook = errorHook
|
||||||
msgs.writelnHook = proc (s: string) = discard
|
msgs.writelnHook = proc (s: string) = discard
|
||||||
|
else:
|
||||||
|
msgs.structuredErrorHook = nil
|
||||||
|
msgs.writelnHook = proc (s: string) = discard
|
||||||
if cmd == ideUse and suggestVersion != 2:
|
if cmd == ideUse and suggestVersion != 2:
|
||||||
graph.resetAllModules()
|
graph.resetAllModules()
|
||||||
var isKnownFile = true
|
var isKnownFile = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue