Skip to content

"Generate 'get' and 'set' accessors" refactor triggers on whitespace #24880

Closed
@ghost

Description

TypeScript Version: 3.0.0-dev.20180609

Code

class A {
    p = 0;
}

Highlight any space between { and p.

Expected behavior:

No refactor.

Actual behavior:

Refactor is suggested.

Note refactorConvertToGetAccessAndSetAccess35.ts was meant to test for this, but verify.not.refactorAvailable(); without a name provided will always pass because it compares refactor names to undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbolFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions