renamed writelnHook to writelnToChannel
This commit is contained in:
parent
20ccf417f6
commit
1189ae9b99
1 changed files with 3 additions and 3 deletions
|
|
@ -235,7 +235,7 @@ proc toEpc(client: Socket; uid: BiggestInt) {.gcsafe.} =
|
||||||
if gIdeCmd != ideChk:
|
if gIdeCmd != ideChk:
|
||||||
returnEPC(client, uid, list)
|
returnEPC(client, uid, list)
|
||||||
|
|
||||||
proc writelnHook(line: string) =
|
proc writelnToChannel(line: string) =
|
||||||
results.send(Suggest(section: ideChk, doc: line))
|
results.send(Suggest(section: ideChk, doc: line))
|
||||||
|
|
||||||
proc sugResultHook(s: Suggest) =
|
proc sugResultHook(s: Suggest) =
|
||||||
|
|
@ -400,14 +400,14 @@ proc mainThread(graph: ModuleGraph; cache: IdentCache) =
|
||||||
logStr(PStrEntry(it).data)
|
logStr(PStrEntry(it).data)
|
||||||
it = it.next
|
it = it.next
|
||||||
|
|
||||||
msgs.writelnHook = writelnHook
|
msgs.writelnHook = writelnToChannel
|
||||||
suggestionResultHook = sugResultHook
|
suggestionResultHook = sugResultHook
|
||||||
graph.doStopCompile = proc (): bool = requests.peek() > 0
|
graph.doStopCompile = proc (): bool = requests.peek() > 0
|
||||||
var idle = 0
|
var idle = 0
|
||||||
while true:
|
while true:
|
||||||
let (hasData, req) = requests.tryRecv()
|
let (hasData, req) = requests.tryRecv()
|
||||||
if hasData:
|
if hasData:
|
||||||
msgs.writelnHook = writelnHook
|
msgs.writelnHook = writelnToChannel
|
||||||
suggestionResultHook = sugResultHook
|
suggestionResultHook = sugResultHook
|
||||||
|
|
||||||
execCmd(req, graph, cache)
|
execCmd(req, graph, cache)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue