perf: server: reset info trees for each snapshot

This commit is contained in:
Sebastian Ullrich 2021-11-04 14:43:25 +01:00
parent bbaf98addf
commit fc5082eaef

View file

@ -124,7 +124,7 @@ def compileNextCmd (text : FileMap) (snap : Snapshot) : IO Snapshot := do
let (output, _) ← IO.FS.withIsolatedStreams do
EIO.toIO ioErrorFromEmpty do
Elab.Command.catchExceptions
(Elab.Command.elabCommandTopLevel cmdStx)
(getResetInfoTrees *> Elab.Command.elabCommandTopLevel cmdStx)
cmdCtx cmdStateRef
let mut postCmdState ← cmdStateRef.get
if !output.isEmpty then