Add move method to parent class refactor
Open
@dinsley is already working on this.
Since Oct 11, 2024.
enhancement
help-wanted
pinned
server
- Dominant language
- Ruby
- Stars
- 2k
- Forks
- 281
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 6
Description
Add a new code action to move the selected method implementation to the parent class. For example:
# BEFORE
class Parent
end
class Child < Parent
def foo
end
end
# AFTER
class Parent
def foo
end
end
class Child < Parent
end
Here's an example PR adding a refactor end to end https://github.com/Shopify/ruby-lsp/pull/2372.
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.
Assessment
This issue has not been assessed yet.