This is a migrated thread and some comments may be shown as answers.

Contrain Rename

2 Answers 38 Views
Refactorings
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 21 Mar 2011, 04:04 PM
Is there a way to constrain a rename to the open document I'm in?

I use "context" a lot, and when I move it to be a private member and rename (to make it _context) JC searches and opens a dialog with context references across the whole (large) solution.

2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlozar
Telerik team
answered on 25 Mar 2011, 09:12 AM
Hello Steve,

I guess you want to be able to rename javascript global variable only in the current file. Please, let us know if it is another case.

Basically, it is not really 100% safe when you want to rename a global variable, because often javascript files have references that we can't easily track, assembly resources, dynamic loading etc, so we decided that it would be better to have that behavior by default, but you are right, it would be best if we have an option for that. I created a public PITS item for it - Create an option for "Rename only in the current file", you can track its progress. 

Regards,
Svetlozar Angelov
the Telerik team
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 25 Mar 2011, 02:46 PM
Nope, I just want to rename a local variable in the open document :)

I realize that it CAN do global...but the variable I'm trying to rename is declared locally, so I just wanted to rename it quickly, not have a second big dialog popup + processing that comes with searching the solution.

Thx for the pits issue

Steve
Tags
Refactorings
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Svetlozar
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or