mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
nimsuggest: make use project file name if none given for 'sug' command; allows for more convenient debugging
This commit is contained in:
@@ -437,10 +437,14 @@ proc execCmd(cmd: string; graph: ModuleGraph; cachedMsgs: CachedMsgs) =
|
||||
else: err()
|
||||
var dirtyfile = ""
|
||||
var orig = ""
|
||||
i = parseQuoted(cmd, orig, i)
|
||||
if i < cmd.len and cmd[i] == ';':
|
||||
i = parseQuoted(cmd, dirtyfile, i+1)
|
||||
i += skipWhile(cmd, seps, i)
|
||||
i += skipWhitespace(cmd, i)
|
||||
if i < cmd.len and cmd[i] in {'0'..'9'}:
|
||||
orig = string conf.projectFull
|
||||
else:
|
||||
i = parseQuoted(cmd, orig, i)
|
||||
if i < cmd.len and cmd[i] == ';':
|
||||
i = parseQuoted(cmd, dirtyfile, i+1)
|
||||
i += skipWhile(cmd, seps, i)
|
||||
var line = -1
|
||||
var col = 0
|
||||
i += parseInt(cmd, line, i)
|
||||
|
||||
Reference in New Issue
Block a user