* fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6]
This commit is contained in:
parent
8cdd8867c0
commit
82319ef00d
3 changed files with 9 additions and 5 deletions
|
|
@ -301,7 +301,7 @@ proc loadConfigs*(cfg: RelativeFile; cache: IdentCache; conf: ConfigRef; idgen:
|
|||
if conf.cmd == cmdNimscript:
|
||||
showHintConf()
|
||||
conf.configFiles.setLen 0
|
||||
if conf.cmd != cmdIdeTools:
|
||||
if conf.cmd notin {cmdIdeTools, cmdCheck, cmdDump}:
|
||||
if conf.cmd == cmdNimscript:
|
||||
runNimScriptIfExists(conf.projectFull, isMain = true)
|
||||
else:
|
||||
|
|
@ -311,5 +311,6 @@ proc loadConfigs*(cfg: RelativeFile; cache: IdentCache; conf: ConfigRef; idgen:
|
|||
runNimScriptIfExists(scriptFile, isMain = true)
|
||||
else:
|
||||
# 'nimsuggest foo.nims' means to just auto-complete the NimScript file
|
||||
# `nim check foo.nims' means to check the syntax of the NimScript file
|
||||
discard
|
||||
showHintConf()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue