Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Not Working in projected C# scenarios (Blazor Code) #44891

Open
vsfeedback opened this issue Jun 5, 2020 · 4 comments
Open

Rename Not Working in projected C# scenarios (Blazor Code) #44891

vsfeedback opened this issue Jun 5, 2020 · 4 comments
Labels
Area-IDE Concept-Continuous Improvement Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature - Rename help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


Hi Team,

Using VS Community 2019 V16.6.0 on Windows 10, when creating and using Blazor WebAssembly App project template, in a Blazor component, I am not seeing the Rename refactoring option when I right click a variable or method name. But rename does work in JavaScript code in the same project.

Reproduce steps:

dotnet/aspnetcore#1. Create a new Blazor WebAssembly App project.

dotnet/aspnetcore#2. Add some codes in .razor file for example Index.razor and includes methods and variables.

dotnet/aspnetcore#3. move cursor to focus on the method's name or variable, then right-click it, you will not find the "Rename" option in the list.

If this is a potential issue, please fix it.

Thanks.


Original Comments

Visual Studio Feedback System on 6/3/2020, 00:22 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

@NTaylorMullen
Copy link
Contributor

I verified that the rename option disapeared for Razor scenarios /cc @jasonmalinowski

To workaround this issue you can use hotkeys such as ctrl + r, ctrl + r to rename your items.

@NTaylorMullen NTaylorMullen transferred this issue from dotnet/aspnetcore Jun 5, 2020
@NTaylorMullen NTaylorMullen changed the title Rename Not Working in Blazor Code Rename Not Working in projected C# scenarios (Blazor Code) Jun 5, 2020
@NTaylorMullen
Copy link
Contributor

Repro:

  1. Create a default Blazor app
  2. Open Counter.razor
  3. right click on currentCount
  4. See no rename option:
    image

@gafter gafter added the Area-IDE label Jun 9, 2020
@jinujoseph jinujoseph added Concept-Continuous Improvement Developer Community The issue was originally reported on https://developercommunity.visualstudio.com labels Jun 10, 2020
@jinujoseph jinujoseph added this to the Backlog milestone Jun 10, 2020
@jinujoseph jinujoseph added the help wanted The issue is "up for grabs" - add a comment if you are interested in working on it label Jun 10, 2020
@iikuzmychov
Copy link

Why after 2 years it still doesn't work correctly??

@CyrusNajmabadi
Copy link
Member

@iikuzmychov this is currently on the backlog. So this does not take priority over all the other work we have on our plates. If you'd like to contribute a fix here though, we'd help get that in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Concept-Continuous Improvement Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature - Rename help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
None yet
Development

No branches or pull requests

7 participants