Skip to content

Commit

Permalink
LSP: leave goals unchanged in case of error when handling a tactic (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alidra authored Nov 7, 2024
1 parent 3223066 commit fb45b54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lsp/lp_doc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ let process_pstep (pstate,diags,logs) tac nb_subproofs =
pstate, (tac_loc, 4, qres, goals) :: diags, logs
| Tac_Error(loc,msg) ->
let loc = option_default loc tac_loc in
pstate, (loc, 1, msg, None) :: diags, ((1, msg), loc) :: logs
let goals = Some (current_goals pstate) in
pstate, (loc, 1, msg, goals) :: diags, ((1, msg), loc) :: logs

let process_proof pstate tacs logs =
Pure.ProofTree.fold process_pstep (pstate,[],logs) tacs
Expand Down

0 comments on commit fb45b54

Please sign in to comment.