nimsuggest: make all tests green
This commit is contained in:
parent
2adb4ce9eb
commit
2df5a6f863
2 changed files with 34 additions and 31 deletions
|
|
@ -402,14 +402,18 @@ proc mainThread(graph: ModuleGraph; cache: IdentCache) =
|
|||
logStr(PStrEntry(it).data)
|
||||
it = it.next
|
||||
|
||||
msgs.writelnHook = writelnToChannel
|
||||
proc wrHook(line: string) {.closure.} =
|
||||
if gMode == mepc: discard
|
||||
else: writelnToChannel(line)
|
||||
|
||||
msgs.writelnHook = wrHook
|
||||
suggestionResultHook = sugResultHook
|
||||
graph.doStopCompile = proc (): bool = requests.peek() > 0
|
||||
var idle = 0
|
||||
while true:
|
||||
let (hasData, req) = requests.tryRecv()
|
||||
if hasData:
|
||||
msgs.writelnHook = writelnToChannel
|
||||
msgs.writelnHook = wrHook
|
||||
suggestionResultHook = sugResultHook
|
||||
|
||||
execCmd(req, graph, cache)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue