209 references to FatalError
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteData.cs (2)
34
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex, ErrorSeverity.Critical))
54
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex, ErrorSeverity.Critical))
Microsoft.CodeAnalysis.CSharp.Features (17)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
103
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e))
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
84
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
96
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
97
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (1)
174
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
58
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
90
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
86
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
126
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
96
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
58
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
66
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
189
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken, ErrorSeverity.General))
Debugging\CSharpBreakpointResolutionService.cs (1)
48
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
Debugging\CSharpProximityExpressionsService.cs (1)
97
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
Debugging\DataTipInfoGetter.cs (1)
81
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
207
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e))
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Rename\CSharpRenameRewriterLanguageService.cs (2)
426
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
923
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
134
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.General))
Microsoft.CodeAnalysis.ExternalAccess.Copilot (4)
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (4)
45
FatalError
.ReportAndCatch(new ArgumentNullException(nameof(externalCopilotService)), ErrorSeverity.Diagnostic);
48
FatalError
.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpCopilotGenerateDocumentationService)), ErrorSeverity.Diagnostic);
51
FatalError
.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpOnTheFlyDocsService)), ErrorSeverity.Diagnostic);
54
FatalError
.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpCopilotGenerateImplementationService)), ErrorSeverity.Diagnostic);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (1)
48
FatalError
.ReportAndCatch(new Exception($"classification type doesn't exist for {name}"));
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (1)
67
catch (Exception e) when (
FatalError
.ReportAndPropagate(e, ErrorSeverity.Diagnostic))
Microsoft.CodeAnalysis.Features (75)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
481
FatalError
.ReportNonFatalError(
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
77
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
55
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
333
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (1)
60
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Copilot\ICopilotChangeAnalysisService.cs (1)
279
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
Debugging\AbstractBreakpointResolver.cs (2)
116
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
152
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
314
FatalError
.ReportAndCatch(new Exception("Bug in GetDiagnostics"));
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.CompilationManager.cs (1)
94
FatalError
.ReportAndPropagate(ex);
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (3)
46
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
111
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
157
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
161
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
71
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Diagnostics\Service\EngineV2\InProcOrRemoteHostAnalyzerRunner.cs (1)
151
catch (Exception ex) when (
FatalError
.ReportAndCatchUnlessCanceled(ex, cancellationToken))
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
323
catch (NullReferenceException e) when (
FatalError
.ReportAndCatch(e))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
696
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
1457
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
3635
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
EditAndContinue\DebuggingSession.cs (3)
518
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
840
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
917
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (3)
51
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
96
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
217
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (2)
80
catch (Exception e) when (
FatalError
.ReportAndCatch(e)) // likely a bug in the compiler/debugger
101
catch (InvalidOperationException e) when (
FatalError
.ReportAndCatch(e)) // likely a bug in the compiler/debugger
EditAndContinue\EditAndContinueService.cs (1)
177
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
EditAndContinue\EditSession.cs (4)
235
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
249
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
821
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
1428
catch (Exception e) when (LogException(e) &&
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
EditAndContinue\Remote\ActiveStatementSpanProviderCallback.cs (1)
26
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (1)
79
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (5)
62
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
74
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
86
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
98
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
110
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
ExternalAccess\UnitTesting\SolutionCrawler\AbstractUnitTestingDocumentDifferenceService.cs (1)
53
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIdleProcessor.cs (1)
146
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (3)
206
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
227
catch (Exception e) when (
FatalError
.ReportAndPropagate(e))
241
return
FatalError
.ReportAndPropagate(flattened);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (2)
60
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
152
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (4)
142
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
227
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
281
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
311
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
ExtractMethod\ExtractMethodMatrix.cs (1)
98
FatalError
.ReportAndCatch(new Exception($"extract method encountered unknown states: {key.ToString()}"), ErrorSeverity.Critical);
FindUsages\IRemoteFindUsagesService.cs (2)
126
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
138
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
Formatting\AbstractNewDocumentFormattingService.cs (1)
59
catch (Exception ex) when (
FatalError
.ReportAndCatchUnlessCanceled(ex, cancellationToken, ErrorSeverity.General))
Intents\IntentDataProvider.cs (1)
35
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex, ErrorSeverity.General))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
139
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken, ErrorSeverity.General))
247
catch (Exception e) when (
FatalError
.ReportAndCatch(e, ErrorSeverity.Diagnostic))
MetadataAsSource\MetadataAsSourceFileService.cs (1)
236
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
NavigateTo\IRemoteNavigateToSearchService.cs (2)
61
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex))
75
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex))
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
187
catch (BadImageFormatException ex) when (
FatalError
.ReportAndCatch(ex))
SemanticSearch\IRemoteSemanticSearchService.cs (8)
80
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
91
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
102
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
113
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
124
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
136
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
147
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
158
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
SolutionCrawler\AbstractDocumentDifferenceService.cs (1)
98
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
111
catch (Exception ex) when (
FatalError
.ReportAndCatchUnlessCanceled(ex))
Structure\Syntax\AbstractBlockStructureProvider.cs (1)
69
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
SymbolSearch\Windows\SymbolSearchUpdateEngine.cs (1)
47
static (e, ct) =>
FatalError
.ReportAndCatchUnlessCanceled(e, ct))
Wrapping\AbstractCodeActionComputer.cs (1)
311
catch (Exception ex) when (
FatalError
.ReportAndCatchUnlessCanceled(ex, cancellationToken, ErrorSeverity.Diagnostic))
Microsoft.CodeAnalysis.LanguageServer (4)
LanguageServerFatalError.cs (1)
22
FatalError
.ReportAndPropagate(exception, severity);
Logging\RoslynLogger.cs (3)
34
FatalError
.ErrorReporterHandler handler = ReportFault;
35
FatalError
.SetHandlers(handler, nonFatalHandler: handler);
36
FatalError
.CopyHandlersTo(typeof(Compilation).Assembly);
Microsoft.CodeAnalysis.LanguageServer.Protocol (12)
Extensions\ProtocolConversions.cs (1)
331
catch (Exception e) when (
FatalError
.ReportAndPropagate(e))
Features\Diagnostics\DiagnosticDataExtensions.cs (1)
45
catch (Exception e) when (
FatalError
.ReportAndCatch(e))
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
101
catch (Exception e) when (
FatalError
.ReportAndPropagate(e, ErrorSeverity.Diagnostic))
Handler\Completion\CompletionResultFactory.cs (1)
559
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e))
Handler\InlineCompletions\XmlSnippetParser.cs (1)
53
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex, ErrorSeverity.General))
Handler\References\FindUsagesLSPContext.cs (1)
289
catch (UriFormatException e) when (
FatalError
.ReportAndCatch(e))
Handler\RequestContext.cs (1)
276
FatalError
.ReportWithDumpAndCatch(new Exception(
LspServices\LspServices.cs (1)
240
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
LspServices\RequestTelemetryScope.cs (1)
62
FatalError
.ReportAndPropagateUnlessCanceled(exception, ErrorSeverity.Critical);
Workspaces\LspWorkspaceManager.cs (3)
162
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
270
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
295
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
HandlerTests.cs (5)
148
FatalError
.OverwriteHandler((exception, severity, dumps) =>
176
FatalError
.OverwriteHandler((exception, severity, dumps) =>
204
FatalError
.OverwriteHandler((exception, severity, dumps) =>
234
FatalError
.OverwriteHandler((exception, severity, dumps) =>
262
FatalError
.OverwriteHandler((exception, severity, dumps) =>
Microsoft.CodeAnalysis.Remote.ServiceHub (14)
Host\RemoteWorkspace.cs (4)
104
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken, ErrorSeverity.Critical))
132
catch (Exception ex) when (
FatalError
.ReportAndPropagate(ex, ErrorSeverity.Critical))
196
catch (Exception ex) when (
FatalError
.ReportAndPropagate(ex, ErrorSeverity.Critical))
265
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Host\RemoteWorkspace.InFlightSolution.cs (1)
126
catch (Exception ex) when (
FatalError
.ReportAndPropagate(ex, ErrorSeverity.General))
Host\RemoteWorkspace.SolutionCreator.cs (1)
142
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
Services\BrokeredServiceBase.cs (2)
121
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
170
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
Services\BrokeredServiceBase.FactoryBase.cs (1)
76
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
Services\EditAndContinue\RemoteEditAndContinueService.cs (2)
133
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
154
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (3)
36
FatalError
.ErrorReporterHandler handler = static (exception, severity, forceDump) => ReportFault(exception, ConvertSeverity(severity), forceDump);
37
FatalError
.SetHandlers(handler, nonFatalHandler: handler);
38
FatalError
.CopyHandlersTo(typeof(Compilation).Assembly);
Microsoft.CodeAnalysis.Remote.Workspaces (11)
BrokeredServiceConnection.cs (1)
343
return
FatalError
.ReportAndCatch(exception);
EditAndContinue\ManagedHotReloadLanguageService.cs (8)
98
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
117
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
151
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
177
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
202
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
241
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
276
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
300
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
RemoteCallback.cs (2)
226
return
FatalError
.ReportAndCatch(exception);
237
return
FatalError
.ReportAndPropagate(exception);
Microsoft.CodeAnalysis.Workspaces (51)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
41
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Diagnostics\DiagnosticData.cs (1)
193
catch (Exception e) when (
FatalError
.ReportWithDumpAndCatch(e, ErrorSeverity.Critical))
ExternalAccess\UnitTesting\Api\UnitTestingFatalErrorAccessor.cs (2)
13
=>
FatalError
.ReportAndCatch(e);
16
=>
FatalError
.ReportAndCatchUnlessCanceled(e);
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
50
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
FindSymbols\StreamingProgressCollector.cs (1)
63
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
FindSymbols\SymbolFinder_Hierarchy.cs (1)
192
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, cancellationToken, ErrorSeverity.Diagnostic))
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
238
FatalError
.ReportAndCatch(new InvalidOperationException(message));
ReassignedVariable\AbstractReassignedVariableService.cs (1)
277
FatalError
.ReportAndCatch(new InvalidOperationException("Local did not come from same file that we were analyzing?"));
Remote\RemoteArguments.cs (1)
118
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
Rename\ConflictEngine\ConflictResolver.cs (1)
308
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
255
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical))
467
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical))
625
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical))
668
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical))
703
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical))
747
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical))
834
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
Shared\Extensions\ISymbolExtensions.cs (1)
253
catch (Exception e) when (
FatalError
.ReportAndCatchUnlessCanceled(e, cancellationToken))
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
19
/// A pre-created delegate to assign to <see cref="
FatalError
.ErrorReporterHandler" /> if needed.
21
internal static readonly
FatalError
.ErrorReporterHandler Handler = static (e, _, _) => OnFatalException(e);
src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
81
var targetType = assembly.GetType(typeof(
FatalError
).FullName!, throwOnError: true)!;
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
278
catch (Exception ex) when (
FatalError
.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
448
catch (Exception e) when (
FatalError
.ReportAndPropagate(e))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
21
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
Storage\AbstractPersistentStorageService.cs (1)
108
FatalError
.ReportAndCatch(ex);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1174
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex, ErrorSeverity.General))
Workspace\Solution\Document.cs (2)
374
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
510
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\DocumentState.cs (3)
206
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
228
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
690
FatalError
.ReportAndCatch(new Exception($"tree and text has different length {newTree.Length} vs {newText.Length}"), ErrorSeverity.Critical);
Workspace\Solution\ProjectState_Checksum.cs (1)
79
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Workspace\Solution\Solution.cs (1)
665
catch (Exception ex) when (
FatalError
.ReportAndPropagate(ex))
Workspace\Solution\SolutionCompilationState.cs (3)
1313
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
1333
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
1705
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (5)
271
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
354
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
399
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
469
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
990
catch (Exception e) when (
FatalError
.ReportWithDumpAndCatch(e, ErrorSeverity.Critical))
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (2)
93
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
104
catch (Exception ex) when (
FatalError
.ReportAndCatch(ex))
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
145
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\SolutionState.cs (1)
1364
FatalError
.ReportAndCatch(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
Workspace\Solution\SolutionState_Checksum.cs (1)
149
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\TextDocumentState_Checksum.cs (1)
46
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Workspace.cs (1)
552
catch (Exception e) when (
FatalError
.ReportAndPropagate(e, ErrorSeverity.Critical))
Workspace\Workspace_Editor.cs (1)
707
catch (Exception e) when (
FatalError
.ReportAndPropagate(e, ErrorSeverity.General))
Workspace\WorkspaceEventMap.cs (1)
106
catch (Exception e) when (
FatalError
.ReportAndCatch(e))
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
UtilityTest\ExceptionHelpersTests.cs (3)
41
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e))
60
FatalError
.SetHandlers(delegate { }, delegate { });
63
FatalError
.ReportNonFatalError(e);
Microsoft.VisualStudio.IntegrationTest.Setup (3)
TestExtensionErrorHandler.cs (1)
25
FatalError
.ReportAndPropagate(exception);
TestTraceListener.cs (2)
115
FatalError
.ReportAndCatch(reportedException, ErrorSeverity.Critical);
119
FatalError
.ReportAndPropagate(reportedException, ErrorSeverity.Critical);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CSharpPackage.cs (1)
80
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.General))
SemanticSearch\SemanticSearchQueryExecutor.cs (1)
168
catch (Exception e) when (
FatalError
.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
488
FatalError
.ReportAndCatch(new LiveShareTextBufferMissingException());