75 references to NotificationSeverity
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EncapsulateField\EncapsulateFieldTestState.cs (1)
38var callback = new Action<string, string, NotificationSeverity>((message, title, severity) => NotificationMessage = message);
Microsoft.CodeAnalysis.EditorFeatures (25)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (4)
120if (result.ConfirmationMessage != null && !notificationService.ConfirmMessageBox(result.ConfirmationMessage, severity: NotificationSeverity.Warning)) 164ShowMessage(FeaturesResources.The_member_is_defined_in_metadata, NotificationSeverity.Error, operationContext, notificationService); 167ShowMessage(FeaturesResources.You_can_only_change_the_signature_of_a_constructor_indexer_method_or_delegate, NotificationSeverity.Error, operationContext, notificationService); 171static void ShowMessage(string errorMessage, NotificationSeverity severity, IUIThreadOperationContext operationContext, INotificationService notificationService)
CodeActions\CodeActionEditHandlerService.cs (1)
125severity: NotificationSeverity.Error);
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
104notificationService.SendNotification(EditorFeaturesResources.Please_select_the_definition_of_the_field_to_encapsulate, severity: NotificationSeverity.Error);
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (1)
66notificationService.SendNotification(EditorFeaturesResources.The_definition_of_the_object_is_hidden, severity: NotificationSeverity.Error);
ExtractMethod\ExtractMethodCommandHandler.cs (3)
174severity: NotificationSeverity.Error)) 254severity: NotificationSeverity.Error); 269severity: NotificationSeverity.Warning))
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
162FeaturesResources.Cannot_navigate_to_the_symbol_under_the_caret, EditorFeaturesResources.Go_to_Definition, NotificationSeverity.Information);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
135notificationService.SendNotification(message, title: EditorFeaturesResources.Rename, severity: NotificationSeverity.Error);
InlineRename\InlineRenameSession.cs (4)
867private async Task<(NotificationSeverity severity, string message)?> TryApplyRenameAsync( 882return (NotificationSeverity.Error, EditorFeaturesResources.Rename_operation_was_cancelled_or_is_not_valid); 892return (NotificationSeverity.Error, EditorFeaturesResources.Rename_operation_could_not_complete_due_to_external_change_to_workspace); 909return (NotificationSeverity.Information, EditorFeaturesResources.Rename_operation_was_not_properly_completed_Some_file_might_not_have_been_updated);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
94?.SendNotification(EditorFeaturesResources.The_rename_tracking_session_was_cancelled_and_is_no_longer_available, severity: NotificationSeverity.Error);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (8)
55public async Task<(NotificationSeverity severity, string message)?> TryCommitAsync(CancellationToken cancellationToken) 98private async Task<(NotificationSeverity, string)?> TryApplyChangesToWorkspaceAsync(CancellationToken cancellationToken) 148return (NotificationSeverity.Error, EditorFeaturesResources.Rename_operation_was_cancelled_or_is_not_valid); 223private (NotificationSeverity, string)? TryUpdateWorkspaceForResetOfTypedIdentifier(Workspace workspace, Solution newSolution, int trackingSessionId) 237return (NotificationSeverity.Error, EditorFeaturesResources.Rename_operation_could_not_complete_due_to_external_change_to_workspace); 254private (NotificationSeverity, string)? TryUpdateWorkspaceForGlobalIdentifierRename( 277return (NotificationSeverity.Error, EditorFeaturesResources.Rename_operation_could_not_complete_due_to_external_change_to_workspace); 282return (NotificationSeverity.Information, EditorFeaturesResources.Rename_operation_was_not_properly_completed_Some_file_might_not_have_been_updated);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
ExtractInterface\ExtractInterfaceTestState.cs (1)
37public NotificationSeverity ErrorSeverity { get; private set; }
Workspaces\TestWorkspace.cs (2)
105NotificationSeverity.Information => "💡", 106NotificationSeverity.Warning => "⚠",
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (6)
Utilities\TestNotificationService.vb (6)
13Public MessageSeverity As NotificationSeverity 17Public ConfirmBoxSeverity As NotificationSeverity 21Public Sub SendNotification(message As String, Optional title As String = Nothing, Optional severity As NotificationSeverity = NotificationSeverity.Warning) Implements INotificationService.SendNotification 27Public Function ConfirmMessageBox(message As String, Optional title As String = Nothing, Optional severity As NotificationSeverity = NotificationSeverity.Warning) As Boolean Implements INotificationService.ConfirmMessageBox
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
RenameTracking\RenameTrackingTestState.cs (1)
99var callback = new Action<string, string, NotificationSeverity>((message, title, severity) => _notificationMessage = message);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (10)
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
113notificationService?.SendNotification(ex.Message, title: EditorFeaturesResources.Rename, severity: NotificationSeverity.Error);
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (1)
344notificationService.SendNotification(ex.Message, title: EditorFeaturesResources.Rename, severity: NotificationSeverity.Error);
Notification\EditorNotificationServiceFactory.cs (8)
45public Action<string, string, NotificationSeverity> NotificationCallback { get; set; } 50NotificationSeverity severity = NotificationSeverity.Warning) 68NotificationSeverity severity = NotificationSeverity.Warning) 84private static MessageBoxImage SeverityToImage(NotificationSeverity severity) 87NotificationSeverity.Information => MessageBoxImage.Information, 88NotificationSeverity.Warning => MessageBoxImage.Warning,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Rename\InlineRenameTests.vb (2)
1291Dim actualSeverity As NotificationSeverity = Nothing 1305Assert.Equal(NotificationSeverity.Error, actualSeverity)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\Editor\FSharpNavigationBarItemService.cs (1)
81notificationService.SendNotification(EditorFeaturesResources.The_definition_of_the_object_is_hidden, severity: NotificationSeverity.Error);
Microsoft.CodeAnalysis.Features (8)
ChangeSignature\ChangeSignatureCodeActionOperation.cs (1)
48if (!notificationService.ConfirmMessageBox(ConfirmationMessage, severity: NotificationSeverity.Warning))
ExtractInterface\AbstractExtractInterfaceService.cs (2)
64Action<string, NotificationSeverity> errorHandler, 76errorHandler(typeAnalysisResult.ErrorMessage, NotificationSeverity.Error);
Notification\INotificationService.cs (4)
22NotificationSeverity severity = NotificationSeverity.Warning); 34NotificationSeverity severity = NotificationSeverity.Warning);
Notification\INotificationServiceCallback.cs (1)
13Action<string, string, NotificationSeverity> NotificationCallback { get; set; }
Microsoft.VisualStudio.LanguageServices (17)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
118notificationService.SendNotification(EditorFeaturesResources.Cursor_must_be_on_a_member_name, severity: NotificationSeverity.Information);
ChangeSignature\AddParameterDialogViewModel.cs (1)
172_notificationService?.SendNotification(message, severity: NotificationSeverity.Information);
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
514_notificationService.SendNotification(message, severity: NotificationSeverity.Information);
ExtractClass\ExtractClassViewModel.cs (1)
64=> _notificationService.SendNotification(message, severity: NotificationSeverity.Information);
ExtractInterface\ExtractInterfaceDialogViewModel.cs (1)
77=> _notificationService.SendNotification(message, severity: NotificationSeverity.Information);
GenerateType\GenerateTypeDialogViewModel.cs (1)
405=> _notificationService.SendNotification(message, severity: NotificationSeverity.Information);
Notification\VSNotificationServiceFactory.cs (8)
50public Action<string, string, NotificationSeverity> NotificationCallback { get; set; } 58NotificationSeverity severity = NotificationSeverity.Warning) 92public bool ConfirmMessageBox(string message, string title = null, NotificationSeverity severity = NotificationSeverity.Warning) 121private static OLEMSGICON SeverityToIcon(NotificationSeverity severity) 126case NotificationSeverity.Information: 129case NotificationSeverity.Warning:
Packaging\PackageInstallerServiceFactory.cs (2)
358severity: NotificationSeverity.Error); 419severity: NotificationSeverity.Error);
Snippets\AbstractSnippetExpansionClient.cs (1)
1116severity: NotificationSeverity.Warning);
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\AnalyzersCommandHandler.cs (1)
655notificationService.SendNotification(message1 + Environment.NewLine + Environment.NewLine + message2, severity: NotificationSeverity.Error);