TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Renaming a private constructor parameter in VS doesn't rename local references.

Open StarTether opened this issue 12 years ago • 1 comments

If I have a constructor like the following:

constructor(private myVariable: number){
    var something = compute(myVariable);
}

If I choose to rename myVariable to _myVariable then it will catch all references to this.myVariable but the references within the constructor to myVariable are not caught because they are missing this..

StarTether avatar Aug 06 '14 17:08 StarTether

Please check on this when we have a new release with a language service built on top of the new compiler.

danquirk avatar Aug 06 '14 19:08 danquirk