Bug 507918 - rename refactoring does not correctly update the model
Summary: rename refactoring does not correctly update the model
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 17:34 EST by Sam Davis CLA
Modified: 2016-11-21 17:41 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Davis CLA 2016-11-21 17:34:56 EST
* Create a JS project
* create a new .js file with the following content:

function f() {
}
function bar() {
f();
}


* refactor > rename f to f1
* refactor > rename f1 to f21
* The result is this:

function f2() {
}
function bar() {ff1();
}
Comment 1 Sam Davis CLA 2016-11-21 17:41:30 EST
I also noticed that after the first refactoring, mark occurrences no longer works correctly for the renamed function.

I was just trying out JSDT and I have to say I'm disappointed. It doesn't seem nearly as robust as JDT and Open Declaration does not seem to work at all (not even for the simple example above). I'm going to try Webstorm, even though I would much rather be able to do my Java and JS development in the same IDE (Eclipse).