Shopify / Shopify/ruby-lsp

Add move method to parent class refactor

Open
#2,502 3 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.