nimsuggest: bugfix: don't intertwine errors and suggestions

This commit is contained in:
Andreas Rumpf
2017-03-07 10:42:46 +01:00
parent 5d125ca716
commit d9ad6465af

View File

@@ -155,6 +155,9 @@ proc execute(cmd: IdeCmd, file, dirtyfile: string, line, col: int;
if cmd == ideChk:
msgs.structuredErrorHook = errorHook
msgs.writelnHook = proc (s: string) = discard
else:
msgs.structuredErrorHook = nil
msgs.writelnHook = proc (s: string) = discard
if cmd == ideUse and suggestVersion != 2:
graph.resetAllModules()
var isKnownFile = true