"Generate 'get' and 'set' accessors" refactor triggers on whitespace #24880
Labels
Bug
A bug in TypeScript
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 3.0.0-dev.20180609
Code
Highlight any space between
{
andp
.Expected behavior:
No refactor.
Actual behavior:
Refactor is suggested.
Note
refactorConvertToGetAccessAndSetAccess35.ts
was meant to test for this, butverify.not.refactorAvailable();
without a name provided will always pass because it compares refactor names toundefined
.The text was updated successfully, but these errors were encountered: