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

stop hanging function assignment at = #595

Closed
matthargett opened this issue Oct 9, 2022 · 0 comments · Fixed by #600
Closed

stop hanging function assignment at = #595

matthargett opened this issue Oct 9, 2022 · 0 comments · Fixed by #600
Labels
enhancement New feature or request
Milestone

Comments

@matthargett
Copy link

0.14 introduced a feature where it will hang at the = instead of the argument list for many kinds of constructs. There's a particular scenario where this negatively impacts readability:

exports.createResource = function(
        glitch: (Input) -> Thenable<Value>,
        hasInput: (Input) -> Key,
        config: Config?
): Pleasing<Input, Key, Value>
        config = config or {}
        local pleasing
        pleasing = {
                clear = function(): ()
                        entries[pleasing] = nil
                end,
        }
        return pleasing
end

currently gets transformed into this, which in the integration case triggers a cascade of indents
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants