Everlaw / nbts

NetBeans TypeScript editor plugin
282 stars 46 forks source link

Refactor/Rename applied to broadly #57

Open codecoster opened 8 years ago

codecoster commented 8 years ago

When renaming a member variable inside a class (For example in an Angular 2 Component), the rename-refactoring seems to behave very erratic. For example, it tries to rename fields inside the ~/.nebeans/directory or inside the netbeanstypscript folder (and obviously fails due to missing write permission). When the "Rename in strings" option is turned on, occurrences of the expression in various files is performed. However, occurrences inside the same file, within the template-string, are undetected.

jeffrey-easyesi commented 8 years ago

If you have a class member that overrides a base class member of the same name defined outside your program, there's no sensible way to rename it. If you rename only the references in your program, it'll break the override.

I've reported the template strings issue upstream: https://github.com/Microsoft/TypeScript/issues/10081