Skip to content

'Move to new file' refactoring removes spaces between decorator and property modifiers #37940

Closed
@mjbvz

Description

@mjbvz

TypeScript Version: 3.9.0-dev.20200413

Search Terms:

  • move to new file
  • refactor / refactoring

Code
For the TS:

const dec: any = () => { };

class Foo {
    constructor(
        @dec private readonly bar: number
    ) { }
}
  1. Run move to new file on Foo

Bug:

The space between @dec and private is removed

class Foo {
    constructor(
        @decprivate readonly bar: number
    ) { }
}

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbolGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions