mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
nimsuggest: bugfix: don't intertwine errors and suggestions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user