code actions for annotation clauses with diagnostics #67

Open
opened 2026-10-22 09:50:42 +02:00 by EatOreo · 0 comments
Owner

we are doing something like this already for the stale model check in extension/src/language_features/crocqCodeAction.ts.
when we apply diagnostics to clauses we could also provide some actions to fix them with cmd+.,
consider:
PROOF filename:proofname
If file "filename" is not found: does it end with ".v"? else suggest a quick fix adding it. Else suggest generating the skeleton file for it.
If "filename" exists but "proofname" does not: suggest generating the theorem scaffold and putting it inside the file.

we are doing something like this already for the stale model check in extension/src/language_features/crocqCodeAction.ts. when we apply diagnostics to clauses we could also provide some actions to fix them with cmd+., consider: `PROOF filename:proofname` If file "filename" is not found: does it end with ".v"? else suggest a quick fix adding it. Else suggest generating the skeleton file for it. If "filename" exists but "proofname" does not: suggest generating the theorem scaffold and putting it inside the file.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code2rocq/crocq#67
No description provided.