Since TypeScript 3.4 a setting has been implemented into tsserver that makes refactoring > rename create an alias in the local scope insted of change the original name
this abomination was enabled by default on VScode and after months of pain I found a way to disable it.
πππππππ
The configuration is called typescript.preferences.renameShorthandProperties
Top comments (10)
Please note that you should turn both JS and TS options to false in case you edit JS code and do not want the weird thing to happen again.
Hello,
I didn't know that and I renamed a class and VScode created an alias, but I don't know how I can remove this alias manually now. Can someone knows how to do that ? where is this alias defined ?
Dang, I've always been so annoyed since this feature was added! This option should be
false
as default. Thank you so much man πThank you very much! Was looking for this - didn't know there was such a setting.
THANK YOU ugh
Heads up that
renameShorthandProperties
has been deprecated; it's nowuseAliasesForRenames
.Thanks!
Thank a lot, this is really annoying.
Thanks! Have been looking for this since it was changed.
Thanks you man.