Skip to content

Auto formatting (format as you type) removes spaces when it shouldn't #1505

Closed

Description

a, b = function_returning_a_tuple()
Gets formatted to:
a, b=function_returning_a_tuple()

Activity

  1. changed the title [-]Auto formatting removes spaces[/-] [+]Auto formatting (format as you type) removes spaces when it shouldn't[/+] on Apr 26, 2018
  2. DonJayamanne commented on Apr 26, 2018

    @DonJayamanne
    Author

    Brett Cannon (@brettcannon)
    Is this something that should be added to the grammar file (upstream). Surprised there is no example of unpacking tuples in there (I couldn't find one).
    Mikhail Arkhipov (@MikhailArkhipov) cc

  3. MikhailArkhipov commented on Apr 26, 2018

    @MikhailArkhipov

    It is one of the cases when looking at a single line it is hard to tell if this is argument list or not. We don't have real expression parser.

  4. locked as resolved and limited conversation to collaborators on Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions