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

Collapsing ruby functions with ensure blocks don't fully collapse #7

Open
bradgessler opened this issue Oct 29, 2024 · 0 comments
Open

Comments

@bradgessler
Copy link

When I collapse a function in a Ruby function in Zed, it shows ensure, rescue, etc. blocks.

Here's an example:

Zed.Bug.mp4

You can recreate with a function like this:

def foo
  puts "hi"
rescue 
  puts "Rescued!"
ensure
  puts "bye ya'll"
end

I don't know if its a bug, bit it is surprising when I first collapse the function.

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

No branches or pull requests

1 participant