Rename Symbol F2 with "pure keyof" is not possible - but it is possible if "wrapped as calculated property" #56052
Labels
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
I think this could be related to typescript only, even I reported it also here typescript-language-server/typescript-language-server#767
🔎 Search Terms
Rename symbol, keyof
🕗 Version & Regression Information
⏯ Playground Link
https://tsplay.dev/N7QgPW
💻 Code
🙁 Actual behavior
It is wrong because
Att 2
ininterface Case_2
is not renamed🙂 Expected behavior
I expect
Att 2
ininterface Case_2
to be successfully renamed toAttribute 2
Additional information about the issue
Even it is not "a bug but the feature", is there best practice - if reliable renaming is really frequent and important in my project ?
PLS HELP ME ❤️❤️❤️ ... because manually create tons of constants for all project interfaces and all attributes - this is not maintanable way - any other ideas/patterns please ?
The text was updated successfully, but these errors were encountered: