Implement type command (#19944)
* Implement type command - this will be mapped to textDocument/typeDefinition in LSP protocol. It will be very useful for `nim` in particular because typically most of the time the type is inferred. * Update nimsuggest/nimsuggest.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
417b90a7e5
commit
e636c211b0
4 changed files with 47 additions and 3 deletions
|
|
@ -282,7 +282,7 @@ proc runEpcTest(filename: string): int =
|
|||
socket.sendEpcStr(req)
|
||||
let sx = parseSexp(socket.recvEpc())
|
||||
if not req.startsWith("mod "):
|
||||
let answer = sexpToAnswer(sx)
|
||||
let answer = if sx[2].kind == SNil: "" else: sexpToAnswer(sx)
|
||||
doReport(filename, answer, resp, report)
|
||||
|
||||
socket.sendEpcStr "return arg"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue