RFC: “Inline variable” code action
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 9.2k
- Forks
- 990
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 175
Description
Proposal
Add an action that inlines a let or have definition to all usages of that definition.
-
User Experience: The feature makes refactoring code and proofs easier.
-
Beneficiaries: Everyone, but especially people who use
apply?orexact?withhaveto construct proofs -
Maintainability: The features makes maintaining code easier by making refactoring easier
(moved from https://github.com/leanprover/vscode-lean4/issues/630)
Community Feedback
See Lean Zulip thread.
Impact
Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the proposal and the linked Lean Zulip thread; the issue names no repository files, tests, or entry points. Done would mean an implemented code action that inlines a let or have definition at all of its usages, with project-specific validation identified during investigation.
Written by the indexing model from the issue text.
Assessment
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100