nimsuggest: make use project file name if none given for 'sug' command; allows for more convenient debugging
This commit is contained in:
parent
75f8e136e1
commit
55bc29c761
1 changed files with 8 additions and 4 deletions
|
|
@ -437,6 +437,10 @@ proc execCmd(cmd: string; graph: ModuleGraph; cachedMsgs: CachedMsgs) =
|
||||||
else: err()
|
else: err()
|
||||||
var dirtyfile = ""
|
var dirtyfile = ""
|
||||||
var orig = ""
|
var orig = ""
|
||||||
|
i += skipWhitespace(cmd, i)
|
||||||
|
if i < cmd.len and cmd[i] in {'0'..'9'}:
|
||||||
|
orig = string conf.projectFull
|
||||||
|
else:
|
||||||
i = parseQuoted(cmd, orig, i)
|
i = parseQuoted(cmd, orig, i)
|
||||||
if i < cmd.len and cmd[i] == ';':
|
if i < cmd.len and cmd[i] == ';':
|
||||||
i = parseQuoted(cmd, dirtyfile, i+1)
|
i = parseQuoted(cmd, dirtyfile, i+1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue