Skip to content

Commit

Permalink
use goal lctx for hints
Browse files Browse the repository at this point in the history
Closes  #135
  • Loading branch information
abentkamp committed Nov 30, 2023
1 parent 472e2c6 commit 97dc648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/GameServer/RpcHandlers.lean
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def findHints (goal : MVarId) (doc : FileWorker.EditableDocument) (initParams :
then
let userFVars := hintFVars.map fun v => bij.forward.findD v.fvarId! v.fvarId!
let text := (← evalHintMessage hint.text) (userFVars.map Expr.fvar)
let ctx := {env := ← getEnv, mctx := ← getMCtx, lctx := ← getLCtx, opts := {}}
let ctx := {env := ← getEnv, mctx := ← getMCtx, lctx := lctx, opts := {}}
let text ← (MessageData.withContext ctx text).toString
return some { text := text, hidden := hint.hidden }
else return none
Expand Down

0 comments on commit 97dc648

Please sign in to comment.