Aspnetcore: Renamed Component From Different Namespace Not Recognized

Created on 19 Aug 2020  路  3Comments  路  Source: dotnet/aspnetcore

Renaming a component part of a different namespace isn't recognized until the file is closed and re-opened.

Counter.razor:

@using SomeSpace

<Component3></Component3>

Component3.razor:

@namespace SomeSpace

Rename in Counter.razor from Component3 to Component4.

Expected: Component4 is recognized

Actual: Not recognized

RenamedComponentNotRecognized

By Design Resolved area-razor.tooling bug feature-razor.vscode

All 3 comments

Isn't this just because in the background we're discovering TagHelpers for the newly changed file?

Ah yeah, that's it.

In the future we could technically try and "update" the TagHelpers in place to make the TagHelpers how up immediately but that's risky in its own right

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BrennanConroy picture BrennanConroy  路  3Comments

markrendle picture markrendle  路  3Comments

TanvirArjel picture TanvirArjel  路  3Comments

farhadibehnam picture farhadibehnam  路  3Comments

FourLeafClover picture FourLeafClover  路  3Comments