diff options
Diffstat (limited to 'compiler/sem.nim')
-rwxr-xr-x | compiler/sem.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/sem.nim b/compiler/sem.nim index 63e401108..904adf955 100755 --- a/compiler/sem.nim +++ b/compiler/sem.nim @@ -198,11 +198,14 @@ proc myProcess(context: PPassContext, n: PNode): PNode = if msgs.gErrorMax <= 1: result = SemStmtAndGenerateGenerics(c, n) else: + let oldContextLen = msgs.getInfoContextLen() try: result = SemStmtAndGenerateGenerics(c, n) except ERecoverableError: RecoverContext(c) result = ast.emptyNode + msgs.setInfoContextLen(oldContextLen) + if gCmd == cmdIdeTools: findSuggest(c, n) proc checkThreads(c: PContext) = if not needsGlobalAnalysis(): return |