kaiwood/vscode-endwise

Fails inside { ... } block

Closed this issue · 3 comments

endwise

Here's my code:

          status = environment.status.find { |s|
            s.instance.name == name && (channel_name.nil? || s.instance.channel_name == channel_name) }

Hitting Enter anywhere inside the { ... } block causes it to insert a line break after the block. Only happens with this extension installed.

Ok, c11f4e1 in the latest version fixes this behavior by using proper line breaks.

Depending on the cursor position, the indentation is sometimes off +-1 space, so I leave the issue open until I figure that part out. Turns out there are a couple of edge cases to do this extension right, but we'll get there ;)

Thanks for the quick feedback, btw.!

Solved via 2be5566

Awesome, thanks!