Skip to content

Commit

Permalink
try marking environment persistent after each command
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Jun 22, 2024
1 parent 3345a74 commit a08eebd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Lean/Language/Lean.lean
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ where
let postNew := (← tacticCacheNew.get).post
tacticCache.modify fun _ => { pre := postNew, post := {} }
let cmdState ← cmdStateRef.get
-- TODO: should not be done in server mode
let cmdState := Runtime.markPersistent cmdState
let mut messages := cmdState.messages
if !output.isEmpty then
messages := messages.add {
Expand Down

0 comments on commit a08eebd

Please sign in to comment.