Skip to content

Space added before decorated method parameter #20449

Closed

Description

@mjbvz

From microsoft/vscode#39554

TypeScript Version: 2.7.0-dev.20171203

Code

class Test {
    constructor(@foo props: any) {
    }
}

Run format

Expected behavior:
No change

Actual behavior:
Space added:

class Test {
    constructor( @foo props: any) {
    }
}
[Trace  - 11:54:15 AM] Response received: format (92). Request took 4 ms. Success: true 
Result: [
    {
        "start": {
            "line": 2,
            "offset": 17
        },
        "end": {
            "line": 2,
            "offset": 17
        },
        "newText": " "
    }
]

Activity

  1. added
    VS Code Tracked
    on Dec 4, 2017
  2. added
    Domain: Formatter
    Bug
    on Dec 4, 2017
  3. added this to the milestone on Dec 4, 2017
  4. added 2 commits that reference this issue on Dec 6, 2017
    f679365
    17f6550
  5. added a commit that references this issue on Jan 5, 2018
    67eabb9
  6. added
    Fixed
    on Jan 5, 2018
  7. modified the milestones: , TypeScript 2.7 on Jan 5, 2018
  8. added a commit that references this issue on Jan 7, 2018
    2fa229a
  9. locked and limited conversation to collaborators on Jul 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDomain: FormatterFixedVS Code Tracked

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions