consulo / consulo-csharp

Languages: C#
Apache License 2.0
50 stars 6 forks source link

Rename refactoring only in declaration #547

Closed parmaia closed 4 years ago

parmaia commented 4 years ago

In this code example:

1.    float offsetY = 0;
2.    void Update(){
3.        offsetY += Time.deltaTime * 0.08f;
4.        Vector2 offset = new Vector2(offsetY, 0);
5.        main.material.SetTextureOffset("_MainTex", offset);
6.    }

If I select offsetY on line 3 and hit shift+F6 to rename it, nothing happens (the same occurs with any usage of the variable in the Update() method body).

But, if I select offsetY on line 1, where the variable is declared, then I can rename it with shitf+F6 and all occurrences are renamed as well (as always).

This happens to all variables, regardless of the scope. And also happens with types (classes, enums, structs, etc).

Consulo: version = 2020.2 build number = 2483 build date = February 16, 2020 JVM: vendor = Oracle Corporation version = 1.8.0_131 runtimeVersion = 1.8.0_131-b11 Windows 10.0.18362 compilación 18362

VISTALL commented 4 years ago

Hello. Looks like i fixed this issue (https://github.com/consulo/consulo-csharp/issues/545)

Already in nighlty.

parmaia commented 4 years ago

Oh, I haven't seen that!

Great work.

Rubén Parma

El lun., 11 may. 2020 a las 13:16, Valery Semenchuk (< notifications@github.com>) escribió:

Hello. Looks like i fixed this issue (#545 https://github.com/consulo/consulo-csharp/issues/545)

Already in nighlty.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/consulo/consulo-csharp/issues/547#issuecomment-626639766, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATFQWUA7SVTPGITJTZ2L3TRQ7NB7ANCNFSM4M52DO4Q .

VISTALL commented 4 years ago

I'm currently thinking what todo next (consulo, etc), that why not many updates i do.

Sorry for that

parmaia commented 4 years ago

It's ok, is not your fault. You are doing a great job maintaining this project.

Rubén Parma

El lun., 11 may. 2020 a las 14:02, Valery Semenchuk (< notifications@github.com>) escribió:

I'm currently thinking what todo next (consulo, etc), that why not many updates i do.

Sorry for that

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/consulo/consulo-csharp/issues/547#issuecomment-626659195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATFQWVTKXJKD34YWGSAWNDRQ7SM3ANCNFSM4M52DO4Q .