feat: Capture environment in drafting
This commit is contained in:
parent
e0ba65a7cd
commit
5a2ae880f4
|
@ -233,9 +233,9 @@ def execute (command: Protocol.Command): MainM Lean.Json := do
|
||||||
else
|
else
|
||||||
[]
|
[]
|
||||||
let messages ← step.messageStrings
|
let messages ← step.messageStrings
|
||||||
return (boundary, invocations?, sorrys, messages)
|
return (step.before, boundary, invocations?, sorrys, messages)
|
||||||
let li ← frontendM.run context |>.run' state
|
let li ← frontendM.run context |>.run' state
|
||||||
let units ← li.mapM λ (boundary, invocations?, sorrys, messages) => do
|
let units ← li.mapM λ (env, boundary, invocations?, sorrys, messages) => Lean.withEnv env do
|
||||||
let (goalStateId?, goals) ← if sorrys.isEmpty then do
|
let (goalStateId?, goals) ← if sorrys.isEmpty then do
|
||||||
pure (.none, #[])
|
pure (.none, #[])
|
||||||
else do
|
else do
|
||||||
|
|
Loading…
Reference in New Issue