js-refactor icon indicating copy to clipboard operation
js-refactor copied to clipboard

cursor jump to line1 after refactory.

Open banxian opened this issue 8 years ago • 2 comments

for eg, I have a function with a local variable named "a" and I wanna rename it to "probe". first I locate the symbol a in line 427 and begin rename it with hot key ctrl alt r. when I typed probe and hit enter key, the the cursor jumped to one line and editor scroll up to beginning of file. rename on a function is ok. rename on argument have same problem. I wanna upload my js file which can reproduce exact problem but github refuse my zip and suggest me to upload zip

banxian avatar Mar 03 '17 11:03 banxian

try this file and rename some local var/function arguments. ndpd_preload.js.txt

banxian avatar Mar 03 '17 12:03 banxian

I have this issue as well. The cursor is forced to line 1 of the file after every refactor. I've tried pressing enter, tab, and clicking out after refactor. Each time I still jump to line 1.

I have uninstalled and reinstalled refactor and js-refactor packages.

IMBurbank avatar Apr 03 '17 20:04 IMBurbank