Skip to content

Fix Indent affecting lines incorrectly #169

Open
@Gaiko-sw

Description

@Gaiko-sw

Which OS are you using?

Windows

Expected Behaviour

Writing local ret = Button:new(text, x, y) and then putting in a new line before text, to change the arguments to a vertical list, un-indents at text. That is, the result is

Button:new(
text, x, y)

Actual Behaviour

The result should be

Button:new(
    text, x, y)

Reproduction steps

  • Write a function with an argument
  • Break before the argument

Additional Notes

The behaviour is as expected if Fix Indent is off. However I believe the point is for other cases like strings, to get

"I went to a function
the other day"

and not

"I went to a function
    the other day"

I'm not exactly sure what the point of the option is. I assume it doesn't apply to every time vscode indents code, but I think the set it's supposed to apply to probably shouldn't apply to the function(arg) case.

Log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions