Skip to content

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

@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: LS: Refactoringse.g. extract to constant or function, rename symbolFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions