104 references to ReportAndCatch
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteData.cs (2)
43catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical)) 63catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
Microsoft.CodeAnalysis.EditorFeatures (24)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (1)
438catch (Exception e) when (FatalError.ReportAndCatch(e))
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
147catch (Exception e) when (FatalError.ReportAndCatch(e))
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
153catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Diagnostics\AbstractPushOrPullDiagnosticsTaggerProvider.PushDiagnosticsTaggerProvider.cs (1)
222catch (ArgumentOutOfRangeException ex) when (FatalError.ReportAndCatch(ex))
Diagnostics\AbstractPushOrPullDiagnosticsTaggerProvider.SingleDiagnosticKindPullTaggerProvider.cs (1)
140catch (ArgumentOutOfRangeException ex) when (FatalError.ReportAndCatch(ex))
EditAndContinue\ActiveStatementTrackingService.cs (3)
183catch (Exception e) when (FatalError.ReportAndCatch(e)) 247catch (Exception e) when (FatalError.ReportAndCatch(e)) 379catch (Exception e) when (FatalError.ReportAndCatch(e))
EditAndContinue\EditAndContinueLanguageService.cs (1)
225catch (Exception e) when (FatalError.ReportAndCatch(e))
FindReferences\FindReferencesCommandHandler.cs (1)
151catch (Exception e) when (FatalError.ReportAndCatch(e))
GoToDefinition\AbstractGoToCommandHandler`2.cs (1)
148catch (Exception ex) when (FatalError.ReportAndCatch(ex))
InlineRename\InlineRenameSession.cs (1)
231FatalError.ReportAndCatch(new NullTextBufferException(document, text));
IntelliSense\AsyncCompletion\CommitManager.cs (4)
190FatalError.ReportAndCatch(new InvalidOperationException("Subject buffer did not provide Edit Access"), ErrorSeverity.Critical); 196FatalError.ReportAndCatch(new InvalidOperationException("Subject buffer is editing by someone else."), ErrorSeverity.Critical); 217catch (OperationCanceledException e) when (e.CancellationToken != cancellationToken && FatalError.ReportAndCatch(e)) 248FatalError.ReportAndCatch(new InvalidOperationException("The invoked LSP snippet expander came back as false."), ErrorSeverity.Critical);
IntelliSense\Helpers.cs (1)
229catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
LanguageServer\AlwaysActiveLanguageClientEventListener.cs (1)
74catch (Exception e) when (FatalError.ReportAndCatch(e))
NavigationBar\NavigationBarController.cs (1)
258catch (Exception e) when (FatalError.ReportAndCatch(e, ErrorSeverity.Critical))
Preview\DifferenceViewerPreview.cs (1)
48FatalError.ReportAndCatch(new Exception($"Dispose is not called how? viewer state : {_viewer.IsClosed}"));
RenameTracking\RenameTrackingTaggerProvider.cs (1)
94FatalError.ReportAndCatch(ex);
Shared\Extensions\ITextBufferEditExtensions.cs (1)
27catch (Exception e) when (ErrorReporting.FatalError.ReportAndCatch(e, ErrorReporting.ErrorSeverity.Critical))
Shared\Utilities\AbstractClassificationTypeMap.cs (1)
48FatalError.ReportAndCatch(new Exception($"classification type doesn't exist for {name}"));
Structure\AbstractStructureTaggerProvider.cs (1)
262catch (InvalidOutliningRegionException e) when (FatalError.ReportAndCatch(e))
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (8)
NavigationCommandHandlers\FindBaseSymbolsCommandHandler.cs (1)
106catch (Exception e) when (FatalError.ReportAndCatch(e))
NavigationCommandHandlers\FindDerivedSymbolsCommandHandler.cs (1)
121catch (Exception e) when (FatalError.ReportAndCatch(e))
NavigationCommandHandlers\FindExtensionMethodsCommandHandler.cs (1)
133catch (Exception e) when (FatalError.ReportAndCatch(e))
NavigationCommandHandlers\FindImplementingMembersCommandHandler.cs (1)
132catch (Exception e) when (FatalError.ReportAndCatch(e))
NavigationCommandHandlers\FindMemberOverloadsCommandHandler.cs (1)
99catch (Exception e) when (FatalError.ReportAndCatch(e))
NavigationCommandHandlers\FindReferencesOfOverloadsCommandHandler.cs (1)
146catch (Exception e) when (FatalError.ReportAndCatch(e))
SuggestedAction.cs (1)
124catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
SuggestedActionWithNestedActions.cs (1)
67FatalError.ReportAndCatch(new InvalidOperationException($"{nameof(InnerInvokeAsync)} should not be called on a {nameof(SuggestedActionWithNestedActions)}"), ErrorSeverity.Critical);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (9)
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
115catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (1)
346catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
NavigateTo\NavigateToItemProvider.Callback.cs (1)
80catch (InvalidOperationException ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
QuickInfo\LazyToolTip.cs (2)
64catch (Exception ex) when (FatalError.ReportAndCatch(ex)) 84catch (Exception ex) when (FatalError.ReportAndCatch(ex))
StringCopyPaste\WpfStringCopyPasteService.cs (2)
58catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical)) 76catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
Suggestions\SuggestedActions\SuggestedAction.cs (1)
124catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
Suggestions\SuggestedActionWithNestedActions.cs (1)
67FatalError.ReportAndCatch(new InvalidOperationException($"{nameof(InnerInvokeAsync)} should not be called on a {nameof(SuggestedActionWithNestedActions)}"), ErrorSeverity.Critical);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (1)
49FatalError.ReportAndCatch(new Exception($"classification type doesn't exist for {name}"));
Microsoft.CodeAnalysis.Features (7)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
327catch (NullReferenceException e) when (FatalError.ReportAndCatch(e))
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (2)
77catch (Exception e) when (FatalError.ReportAndCatch(e)) // likely a bug in the compiler/debugger 98catch (InvalidOperationException e) when (FatalError.ReportAndCatch(e)) // likely a bug in the compiler/debugger
ExtractMethod\ExtractMethodMatrix.cs (1)
98FatalError.ReportAndCatch(new Exception($"extract method encountered unknown states: {key.ToString()}"), ErrorSeverity.Critical);
Intents\IntentDataProvider.cs (1)
46catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.General))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
221catch (Exception e) when (FatalError.ReportAndCatch(e, ErrorSeverity.Diagnostic))
MetadataAsSource\MetadataAsSourceFileService.cs (1)
186catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\Diagnostics\DiagnosticDataExtensions.cs (1)
44catch (Exception e) when (FatalError.ReportAndCatch(e))
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
334FatalError.ReportAndCatch(new Exception("Bug in GetDiagnostics"));
Handler\InlineCompletions\XmlSnippetParser.cs (1)
53catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.General))
Handler\References\FindUsagesLSPContext.cs (1)
241catch (UriFormatException e) when (FatalError.ReportAndCatch(e))
LspServices\LspServices.cs (1)
163catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\ServiceHubDocumentTrackingService.cs (1)
47FatalError.ReportAndCatch(new InvalidOperationException(message));
Microsoft.CodeAnalysis.Remote.Workspaces (2)
BrokeredServiceConnection.cs (1)
349return FatalError.ReportAndCatch(exception);
RemoteCallback.cs (1)
225return FatalError.ReportAndCatch(exception);
Microsoft.CodeAnalysis.Workspaces (11)
ExternalAccess\UnitTesting\Api\UnitTestingFatalErrorAccessor.cs (1)
15=> FatalError.ReportAndCatch(e);
FatalError.cs (2)
191return ReportAndCatch(exception, severity); 221return ReportAndCatch(exception, severity);
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
253FatalError.ReportAndCatch(new InvalidOperationException(message));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs\TaskExtensions.cs (1)
348FatalError.ReportAndCatch(exception);
ReassignedVariable\AbstractReassignedVariableService.cs (1)
217FatalError.ReportAndCatch(new InvalidOperationException("Local did not come from same file that we were analyzing?"));
Remote\RemoteArguments.cs (1)
124catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Storage\AbstractPersistentStorageService.cs (1)
142FatalError.ReportAndCatch(ex);
Workspace\Solution\DocumentState.cs (1)
706FatalError.ReportAndCatch(new Exception($"tree and text has different length {newTree.Length} vs {newText.Length}"), ErrorSeverity.Critical);
Workspace\Solution\SolutionState.SymbolToProjectId.cs (2)
48catch (Exception ex) when (FatalError.ReportAndCatch(ex)) 59catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Microsoft.VisualStudio.LanguageServices (33)
CallHierarchy\Finders\AbstractCallFinder.cs (1)
74catch (Exception e) when (FatalError.ReportAndCatch(e))
Implementation\AbstractVsTextViewFilter.cs (2)
54catch (Exception e) when (FatalError.ReportAndCatch(e) && false) 157catch (Exception e) when (FatalError.ReportAndCatch(e) && false)
InlineRename\InlineRenameUndoManager.cs (1)
132catch (COMException ex) when (ex.ErrorCode == VSConstants.E_UNEXPECTED && FatalError.ReportAndCatch(ex))
KeybindingReset\KeybindingResetDetector.cs (4)
128FatalError.ReportAndCatch(Marshal.GetExceptionForHR(hr)); 145FatalError.ReportAndCatch(Marshal.GetExceptionForHR(hr)); 320FatalError.ReportAndCatch(Marshal.GetExceptionForHR(hr)); 436FatalError.ReportAndCatch(Marshal.GetExceptionForHR(hr));
LanguageService\AbstractLanguageService`2.IVsImmediateStatementCompletion2.cs (1)
98FatalError.ReportAndCatch(
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
124catch (Exception e) when (FatalError.ReportAndCatch(e, ErrorSeverity.Diagnostic)) 533catch (Exception e) when (FatalError.ReportAndCatch(e, ErrorSeverity.Critical))
Library\ObjectBrowser\ObjectList.cs (1)
767catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
Log\VisualStudioErrorLogger.cs (1)
33FatalError.ReportAndCatch(exception);
Options\FeatureFlagPersister.cs (2)
41catch (Exception e) when (FatalError.ReportAndCatch(e)) 60catch (Exception e) when (FatalError.ReportAndCatch(e))
Options\VisualStudioOptionPersisterProvider.cs (1)
70catch (Exception e) when (FatalError.ReportAndCatch(e))
Packaging\PackageInstallerServiceFactory.cs (3)
177catch (ArgumentException ae) when (FatalError.ReportAndCatch(ae)) 350catch (Exception e) when (FatalError.ReportAndCatch(e)) 411catch (Exception e) when (FatalError.ReportAndCatch(e))
Packaging\PackageInstallerServiceFactory_UndoRedo.cs (1)
111catch (Exception e) when (FatalError.ReportAndCatch(e))
ProjectSystem\FileChangeTracker.cs (1)
147return FatalError.ReportAndCatch(e);
ProjectSystem\OpenTextBufferProvider.cs (1)
88catch (Exception e) when (FatalError.ReportAndCatch(e, ErrorSeverity.Critical))
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1177FatalError.ReportAndCatch(new Exception("Attempting to change the information of a document without a file path."));
RoslynPackage.cs (1)
385FatalError.ReportAndCatch(new InvalidOperationException("BulkFileOperation already exist"), ErrorSeverity.General);
TableDataSource\Suppression\VisualStudioDiagnosticListTableCommandHandler.cs (1)
228catch (Exception ex) when (FatalError.ReportAndCatch(ex))
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
413catch (Exception ex) when (FatalError.ReportAndCatch(ex))
TaskList\ProjectExternalErrorReporter.cs (1)
70FatalError.ReportAndCatch(new Exception("errorId is null"));
TaskList\VisualStudioTaskListService.cs (1)
110catch (Exception e) when (FatalError.ReportAndCatch(e))
Utilities\IVsEditorAdaptersFactoryServiceExtensions.cs (1)
38FatalError.ReportAndCatch(new InvalidOperationException("Could not retrieve document. " + message));
Workspace\VisualStudioDocumentNavigationService.cs (3)
116catch (ArgumentOutOfRangeException e) when (FatalError.ReportAndCatch(e)) 200catch (ArgumentOutOfRangeException e) when (FatalError.ReportAndCatch(e)) 406catch (ArgumentOutOfRangeException e) when (FatalError.ReportAndCatch(e))
Workspace\VisualStudioFormattingRuleFactoryServiceFactory.cs (1)
90FatalError.ReportAndCatch(
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
507FatalError.ReportAndCatch(new LiveShareTextBufferMissingException());