82 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 (36)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (4)
110if (result.ConfirmationMessage != null && !notificationService.ConfirmMessageBox(result.ConfirmationMessage, severity: NotificationSeverity.Warning)) 154ShowMessage(FeaturesResources.The_member_is_defined_in_metadata, NotificationSeverity.Error, operationContext, notificationService); 157ShowMessage(FeaturesResources.You_can_only_change_the_signature_of_a_constructor_indexer_method_or_delegate, NotificationSeverity.Error, operationContext, notificationService); 161static void ShowMessage(string errorMessage, NotificationSeverity severity, IUIThreadOperationContext operationContext, INotificationService notificationService)
CodeActions\CodeActionEditHandlerService.cs (1)
115severity: NotificationSeverity.Error);
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
91notificationService.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 (2)
240severity: NotificationSeverity.Error); 255severity: NotificationSeverity.Warning))
FindUsages\BufferedFindUsagesContext.cs (2)
108await presenterContext.ReportMessageAsync(_state.InformationalMessage, NotificationSeverity.Information, cancellationToken).ConfigureAwait(false); 167async ValueTask IFindUsagesContext.ReportMessageAsync(string message, NotificationSeverity severity, CancellationToken cancellationToken)
GoOrFind\AbstractGoOrFindNavigationService.cs (1)
275EditorFeaturesResources.The_results_may_be_incomplete_due_to_the_solution_still_loading_projects, NotificationSeverity.Information, cancellationToken).ConfigureAwait(false);
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
146FeaturesResources.Cannot_navigate_to_the_symbol_under_the_caret, EditorFeaturesResources.Go_to_Definition, NotificationSeverity.Information);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
141notificationService.SendNotification(message, title: EditorFeaturesResources.Rename, severity: NotificationSeverity.Error);
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
82notificationService?.SendNotification(ex.Message, title: EditorFeaturesResources.Rename, severity: NotificationSeverity.Error);
InlineRename\InlineRenameSession.cs (4)
891private (NotificationSeverity severity, string message)? TryApplyRename( 899return (NotificationSeverity.Error, EditorFeaturesResources.Rename_operation_was_cancelled_or_is_not_valid); 907return (NotificationSeverity.Error, EditorFeaturesResources.Rename_operation_could_not_complete_due_to_external_change_to_workspace); 922return (NotificationSeverity.Information, EditorFeaturesResources.Rename_operation_was_not_properly_completed_Some_file_might_not_have_been_updated);
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,
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
95?.SendNotification(EditorFeaturesResources.The_rename_tracking_session_was_cancelled_and_is_no_longer_available, severity: NotificationSeverity.Error);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (8)
57public async Task<(NotificationSeverity severity, string message)?> TryCommitAsync(CancellationToken cancellationToken) 100private async Task<(NotificationSeverity, string)?> TryApplyChangesToWorkspaceAsync(CancellationToken cancellationToken) 150return (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 (1)
ExtractInterface\ExtractInterfaceTestState.cs (1)
32public NotificationSeverity ErrorSeverity { get; private set; }
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
RenameTracking\RenameTrackingTestState.cs (1)
94var callback = new Action<string, string, NotificationSeverity>((message, title, severity) => _notificationMessage = message);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\Editor\FSharpNavigationBarItemService.cs (1)
82notificationService.SendNotification(EditorFeaturesResources.The_definition_of_the_object_is_hidden, severity: NotificationSeverity.Error);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (3)
Notification\OmniSharpNotificationSeverity.cs (3)
11Information = NotificationSeverity.Information, 12Warning = NotificationSeverity.Warning, 13Error = NotificationSeverity.Error
Microsoft.CodeAnalysis.Features (12)
ChangeSignature\ChangeSignatureCodeActionOperation.cs (1)
41if (!notificationService.ConfirmMessageBox(ConfirmationMessage, severity: NotificationSeverity.Warning))
ExtractInterface\AbstractExtractInterfaceService.cs (2)
60Action<string, NotificationSeverity> errorHandler, 71errorHandler(typeAnalysisResult.ErrorMessage, NotificationSeverity.Error);
FindUsages\AbstractFindUsagesService.DefinitionTrackingContext.cs (1)
36public ValueTask ReportMessageAsync(string message, NotificationSeverity severity, CancellationToken cancellationToken)
FindUsages\FindUsagesContext.cs (1)
24public virtual ValueTask ReportMessageAsync(string message, NotificationSeverity severity, CancellationToken cancellationToken) => default;
FindUsages\IFindUsagesContext.cs (1)
30ValueTask ReportMessageAsync(string message, NotificationSeverity severity, CancellationToken cancellationToken);
FindUsages\IRemoteFindUsagesService.cs (1)
107=> _context.ReportMessageAsync(message, NotificationSeverity.Information, cancellationToken);
Notification\INotificationService.cs (4)
22NotificationSeverity severity = NotificationSeverity.Warning); 34NotificationSeverity severity = NotificationSeverity.Warning);
Notification\INotificationServiceCallback.cs (1)
11Action<string, string, NotificationSeverity> NotificationCallback { get; set; }
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\FindUsages\RemoteFindUsagesService.cs (1)
104public ValueTask ReportMessageAsync(string message, NotificationSeverity severity, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace`1.cs (2)
114NotificationSeverity.Information => "💡", 115NotificationSeverity.Warning => "⚠",
Microsoft.VisualStudio.LanguageServices (22)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
99notificationService.SendNotification(EditorFeaturesResources.Cursor_must_be_on_a_member_name, severity: NotificationSeverity.Information);
ChangeSignature\AddParameterDialogViewModel.cs (1)
174_notificationService?.SendNotification(message, severity: NotificationSeverity.Information);
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
497_notificationService.SendNotification(message, severity: NotificationSeverity.Information);
ExtractClass\ExtractClassViewModel.cs (1)
66=> _notificationService.SendNotification(message, severity: NotificationSeverity.Information);
ExtractInterface\ExtractInterfaceDialogViewModel.cs (1)
74=> _notificationService.SendNotification(message, severity: NotificationSeverity.Information);
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
543public sealed override async ValueTask ReportMessageAsync(string message, NotificationSeverity severity, CancellationToken cancellationToken)
FindReferences\StreamingFindUsagesPresenter.cs (4)
322private async Task ReportMessageAsync(string message, NotificationSeverity severity, CancellationToken cancellationToken) 338NotificationSeverity.Information => KnownMonikers.StatusInformation, 339NotificationSeverity.Error => KnownMonikers.StatusError, 340NotificationSeverity.Warning => KnownMonikers.StatusWarning,
GenerateType\GenerateTypeDialogViewModel.cs (1)
385=> _notificationService.SendNotification(message, severity: NotificationSeverity.Information);
Notification\VSNotificationServiceFactory.cs (8)
48public Action<string, string, NotificationSeverity> NotificationCallback { get; set; } 56NotificationSeverity severity = NotificationSeverity.Warning) 90public bool ConfirmMessageBox(string message, string title = null, NotificationSeverity severity = NotificationSeverity.Warning) 119private static OLEMSGICON SeverityToIcon(NotificationSeverity severity) 124case NotificationSeverity.Information: 127case NotificationSeverity.Warning:
Packaging\PackageInstallerServiceFactory.cs (2)
357severity: NotificationSeverity.Error); 418severity: NotificationSeverity.Error);
Snippets\SnippetExpansionClient.cs (1)
1117severity: NotificationSeverity.Warning);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
SemanticSearch\SemanticSearchQueryExecutor.cs (2)
191canceled ? NotificationSeverity.Information : NotificationSeverity.Error,