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

FourLeafClover picture FourLeafClover  路  3Comments

mj1856 picture mj1856  路  3Comments

BrennanConroy picture BrennanConroy  路  3Comments

markrendle picture markrendle  路  3Comments

ermithun picture ermithun  路  3Comments