Expanding trailing closures #33
Closed
wojciech-kulik
announced in
Tips & Tricks
Replies: 1 comment
-
|
This issue no longer occurs with the latest sourcekit-lsp. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Unfortunately, sourcekit-lsp by default suggests closure as a parameter. If you want to change it to a trailing closure, you need to manually edit the completion.
I managed to write a small function to transform it automatically. You just hit
seand it's done:trailing_closure.mov
And here is the binding:
Beta Was this translation helpful? Give feedback.
All reactions