nimsuggest improvements

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

View File

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

View File

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