Skip to content

Conversation

@TanayParikh
Copy link
Contributor

@TanayParikh TanayParikh commented Sep 24, 2021

Description

Blazor expects components to begin with an uppercase letter. Certain cultures do not differentiate between upper/lowercase characters. As such, components named in those cultures were not getting the RZ10012 diagnostic. Due to the missing diagnostic, some VS code actions were also unavailable.

Note: There is a companion PR to this (internal SDK) which will need to consume the changes of this PR for the final solution to work. This will be done after this PR is merged, and we trigger a "dependency update" between the base release/6.0-rc2 branch we're targeting here, and the release/6.0.1xx-rc2 in the dotnet/sdk repo.

Customer Impact

Ensure components named using characters from cultures which do not differentiate between upper/lowercase still get diagnostics and code actions (ex. GB18030 繁体字).

For an unrecognized component 繁体字, Blazor will silently output <繁体字></繁体字> as markup instead of providing a warning message indicating this may have been intended to be a component. As a result of the missing warning message, Visual Studio code actions (lightbulbs) for creating a component of name 繁体字, or adding a missing using statement will not appear.

Regression?

  • Yes
  • No

[If yes, specify the version the behavior has regressed from]

Risk

  • High
  • Medium
  • Low

[Justify the selection above]

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

Addresses https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1408782

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Sep 24, 2021
@TanayParikh TanayParikh marked this pull request as draft September 24, 2021 01:35
@TanayParikh TanayParikh marked this pull request as ready for review September 24, 2021 17:18
@TanayParikh TanayParikh requested review from a team, NTaylorMullen and pranavkm September 24, 2021 17:20
@mkArtakMSFT mkArtakMSFT added the Servicing-consider Shiproom approval is required for the issue label Sep 24, 2021
@ghost
Copy link

ghost commented Sep 24, 2021

Hi @TanayParikh. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge.

To learn more about how to prepare a servicing PR click here.

@mkArtakMSFT mkArtakMSFT added this to the 6.0-rc2 milestone Sep 24, 2021
@ericstj ericstj requested a review from tarekgh September 24, 2021 18:58
@tarekgh
Copy link
Member

tarekgh commented Sep 24, 2021

@ericstj I already reviewed the change in the other PR #36896.

Copy link
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small touch-up

@TanayParikh TanayParikh added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Sep 24, 2021
@TanayParikh
Copy link
Contributor Author

TanayParikh commented Sep 24, 2021

@dotnet/aspnet-build requesting merge:

E2E Validation Successful:
image

@wtgodbe wtgodbe merged commit cc2f397 into release/6.0-rc2 Sep 24, 2021
@wtgodbe wtgodbe deleted the taparik/rc2MissingComponentDiagnosticLocalized branch September 24, 2021 20:38
TanayParikh added a commit that referenced this pull request Sep 24, 2021
…ltures (#36907)

* Update test to account for localized component names

* Support Titlecase/OtherLetter

* Update ComponentChildContentIntegrationTest.cs

* Add SupportLocalizedComponentNames Configurable Property

* PR Feedback

* Test supportLocalizedComponentNames configuration

* PR Feedback

* Update PublicAPI.Unshipped.txt

* RC2 Tooling Support for Support Localized Component Names (#36936)
TanayParikh added a commit that referenced this pull request Sep 24, 2021
…ertain cultures (#36949)

* Fix Missing `RZ10012` diagnostic for components written in certain cultures (#36907)

* Update test to account for localized component names

* Support Titlecase/OtherLetter

* Update ComponentChildContentIntegrationTest.cs

* Add SupportLocalizedComponentNames Configurable Property

* PR Feedback

* Test supportLocalizedComponentNames configuration

* PR Feedback

* Update PublicAPI.Unshipped.txt

* RC2 Tooling Support for Support Localized Component Names (#36936)

* Update src/Razor/Microsoft.AspNetCore.Razor.Language/src/DefaultRazorIntermediateNodeLoweringPhase.cs

* Update src/Razor/Microsoft.AspNetCore.Razor.Language/src/RazorCodeGenerationOptionsBuilder.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Servicing-approved Shiproom has approved the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants