mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 14:03:23 +00:00
nimsuggest: better logging for EPC mode
This commit is contained in:
@@ -403,8 +403,10 @@ proc mainThread(graph: ModuleGraph; cache: IdentCache) =
|
||||
it = it.next
|
||||
|
||||
proc wrHook(line: string) {.closure.} =
|
||||
if gMode == mepc: discard
|
||||
else: writelnToChannel(line)
|
||||
if gMode == mepc:
|
||||
if gLogging: logStr(line)
|
||||
else:
|
||||
writelnToChannel(line)
|
||||
|
||||
msgs.writelnHook = wrHook
|
||||
suggestionResultHook = sugResultHook
|
||||
|
||||
Reference in New Issue
Block a user