nimsuggest improvements

This commit is contained in:
Andreas Rumpf 2016-07-16 13:47:21 +02:00
commit 8698de1742
2 changed files with 2 additions and 3 deletions

View file

@ -105,7 +105,7 @@ proc checkDepMem(fileIdx: int32): TNeedRecompile =
resetModule(fileIdx) resetModule(fileIdx)
return Yes return Yes
when true: when false:
if gMemCacheData[fileIdx].needsRecompile != Maybe: if gMemCacheData[fileIdx].needsRecompile != Maybe:
return gMemCacheData[fileIdx].needsRecompile return gMemCacheData[fileIdx].needsRecompile
else: else:

View file

@ -59,8 +59,7 @@ template semIdeForTemplateOrGeneric(c: PContext; n: PNode;
# templates perform some quick check whether the cursor is actually in # templates perform some quick check whether the cursor is actually in
# the generic or template. # the generic or template.
when defined(nimsuggest): when defined(nimsuggest):
assert gCmd == cmdIdeTools if gCmd == cmdIdeTools and requiresCheck:
if requiresCheck:
#if optIdeDebug in gGlobalOptions: #if optIdeDebug in gGlobalOptions:
# echo "passing to safeSemExpr: ", renderTree(n) # echo "passing to safeSemExpr: ", renderTree(n)
discard safeSemExpr(c, n) discard safeSemExpr(c, n)