Repository navigation
Revert "Adding analyzer to warn about JSInterop calls not wrapped in a try catch block" - #67873
Merged
akoeplinger merged 1 commit intoJul 17, 2026
Merged
Conversation
…a try ca…" This reverts commit f95205d.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reverts the previously-added Blazor analyzer/code fix that warned on JS interop calls not wrapped in a try/catch, because it caused template test failures.
Changes:
- Removes the JS interop “unguarded call” analyzer and its code fix implementation.
- Removes the associated unit tests and localized resource strings.
- Updates diagnostic descriptors/documentation to reflect the reverted diagnostic.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Components/Analyzers/test/JSInteropCodeFixProviderTest.cs | Removed tests for the reverted JS interop code fix provider. |
| src/Components/Analyzers/test/JSInteropAnalyzerTest.cs | Removed tests for the reverted JS interop analyzer. |
| src/Components/Analyzers/src/Resources.resx | Removed resource strings related to the reverted diagnostic/code fix. |
| src/Components/Analyzers/src/JSInteropCodeFixProvider.cs | Removed the reverted code fix provider. |
| src/Components/Analyzers/src/JSInteropAnalyzer.cs | Removed the reverted analyzer implementation. |
| src/Components/Analyzers/src/DiagnosticDescriptors.cs | Removed the reverted diagnostic descriptor and adjusted remaining diagnostic ID usage. |
| docs/list-of-diagnostics.md | Updated the public diagnostics list to remove the reverted diagnostic entry. |
Comment on lines
+60
to
62
| ### BL (`BL0001-BL0014`) | ||
|
|
||
| | Diagnostic ID | Description | |
akoeplinger
approved these changes
Jul 17, 2026
Member
|
/ba-g fast merge to fix build |
akoeplinger
deleted the
revert-67530-mkirova/unguarded-JSInterop-analyzer
branch
July 17, 2026 09:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #67530. @MayaKirova, my apologies, failures were connected.
Templates.Test.RazorClassLibraryTemplateTest.RazorClassLibraryTemplateAsyncbuild
I will revert it fast now and could you, please investigate the issue and create a new PR with same code but with template tests fixed?