Skip to content

Conversation

@giacomocavalieri
Copy link
Member

With this PR I've implemented the code action to merge consecutive case branches. For now it's quite limited as it only supports branches whose body is a single todo; @lpil do you think we should be comparing the ASTs to check if they can be safely merged?

@lpil
Copy link
Member

lpil commented Nov 18, 2025

@lpil do you think we should be comparing the ASTs to check if they can be safely merged?

Yes, I think so! Wouldn't be much use otherwise.

@giacomocavalieri
Copy link
Member Author

Ok! I'm working on it

@giacomocavalieri giacomocavalieri force-pushed the merge-case-branches branch 2 times, most recently from 7e9ff7c to f5f45b6 Compare November 20, 2025 16:33
@giacomocavalieri
Copy link
Member Author

Done! That ended up being quite a bit of boilerplate 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants