Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code action to convert endless method to method with end #7716

Open
neilparikh opened this issue Feb 21, 2024 · 0 comments
Open

Code action to convert endless method to method with end #7716

neilparikh opened this issue Feb 21, 2024 · 0 comments
Labels
enhancement New feature or surprising current feature IDE Relating to Sorbet's LSP server or VS Code extension

Comments

@neilparikh
Copy link
Collaborator

Input

→ View on sorbet.run

# typed: true

extend T::Sig

sig { params(x: Integer).returns(Integer) }
def foo(x) = x + 1

Observed output

No errors! Great job.

Expected behavior

A code action to convert to the following would be useful.

# typed: true

extend T::Sig

sig { params(x: Integer).returns(Integer) }
def foo(x)
  x + 1
end

@neilparikh neilparikh added enhancement New feature or surprising current feature IDE Relating to Sorbet's LSP server or VS Code extension labels Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or surprising current feature IDE Relating to Sorbet's LSP server or VS Code extension
Projects
None yet
Development

No branches or pull requests

1 participant