Skip to content

Don't use exceptions for flow control#61948

Merged
davidwengier merged 1 commit intodotnet:mainfrom
davidwengier:DontUseExceptionsForControlFlow
Jun 16, 2022
Merged

Don't use exceptions for flow control#61948
davidwengier merged 1 commit intodotnet:mainfrom
davidwengier:DontUseExceptionsForControlFlow

Conversation

@davidwengier
Copy link
Copy Markdown
Member

@davidwengier davidwengier commented Jun 16, 2022

Fixes AB#1514770

I suspect this exception used to bubble all the way up to a command handler that would show its message in the UI, but at some point in the past N years that changed, and the exception now just gets reported via telemetry. This is undesirable, as its a totally expected thing for ILSpy to not be able to decompile in some circumstances, and we gracefully fall back to metadata in those cases.

I suspect this exception used to bubble all the way up to a command handler that would show its message in the UI, but at some point in the past N years that changed, and the exception now just gets reported via telemetry. This is undesirable, as its a totally expected thing for ILSpy to not be able to decompile in some circumstances, and we gracefully fall back to metadata in those cases.
@davidwengier davidwengier requested a review from a team as a code owner June 16, 2022 00:33
@ghost ghost added the Area-IDE label Jun 16, 2022
@davidwengier davidwengier enabled auto-merge (squash) June 16, 2022 00:41
@davidwengier davidwengier merged commit 73de4e9 into dotnet:main Jun 16, 2022
@ghost ghost added this to the Next milestone Jun 16, 2022
@davidwengier davidwengier deleted the DontUseExceptionsForControlFlow branch June 16, 2022 03:18
@RikkiGibson RikkiGibson modified the milestones: Next, 17.3 P3 Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants