nimsuggest improvements
This commit is contained in:
parent
b7c1be03c8
commit
8698de1742
2 changed files with 2 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue