Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/Workspaces/Core/Portable/Diagnostics/DiagnosticData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Runtime.Serialization;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.ErrorReporting;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.PooledObjects;
using Microsoft.CodeAnalysis.Shared.Extensions;
Expand Down Expand Up @@ -180,7 +181,17 @@ void GetLocationInfo(out FileLinePositionSpan originalLineInfo, out FileLinePosi
}
else
{
originalLineInfo = location.GetLineSpan();
try
{
originalLineInfo = location.GetLineSpan();
}
catch (Exception e) when (FatalError.ReportWithDumpAndCatch(e, ErrorSeverity.Critical))
Copy link
Member

Choose a reason for hiding this comment

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

is tehre no REportWithDumpAndPropagate?

Copy link
Member

Choose a reason for hiding this comment

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

guess there isn't!

Copy link
Member

Choose a reason for hiding this comment

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

i would explicitly add a comment stating this is for #74728

{
// Help track down https://github.com/dotnet/roslyn/issues/76225 which appears to be an
// issue caused by https://github.com/dotnet/roslyn/pull/74728
throw;
}

mappedLineInfo = location.GetMappedLineSpan();
}
}
Expand Down
Loading