16 overrides of EquivalenceKey
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
CustomCodeActions.cs (1)
38public sealed override string? EquivalenceKey { get; }
NamingStyleCodeFixProvider.cs (1)
177public override string EquivalenceKey => _equivalenceKey;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\Preview\ErrorCases\ExceptionInCodeAction.cs (1)
35public override string EquivalenceKey
Microsoft.CodeAnalysis.Features (10)
AddImport\CodeActions\AddImportCodeAction.cs (1)
32public sealed override string EquivalenceKey => Title;
CodeFixes\Suppression\NestedSuppressionCodeAction.cs (1)
23public override string EquivalenceKey => Title + DiagnosticIdForEquivalenceKey;
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
62public override string EquivalenceKey => Title;
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndHashWithDialogCodeAction.cs (1)
55public override string EquivalenceKey => Title;
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
117public override string EquivalenceKey => _equivalenceKey;
GenerateMember\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
195public override string EquivalenceKey => _equivalenceKey;
GenerateType\AbstractGenerateTypeService.CodeAction.cs (2)
80public override string EquivalenceKey => _equivalenceKey; 100public override string EquivalenceKey => _state.Name;
ImplementInterface\AbstractImplementInterfaceService.CodeAction.cs (1)
159public override string EquivalenceKey => _equivalenceKey;
NamingStyleCodeFixProvider.cs (1)
177public override string EquivalenceKey => _equivalenceKey;
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.AddKeywordAction.vb (1)
31Public Overrides ReadOnly Property EquivalenceKey As String
Microsoft.CodeAnalysis.Workspaces (2)
CodeActions\CodeAction.cs (1)
486public sealed override string? EquivalenceKey { get; }
CustomCodeActions.cs (1)
38public sealed override string? EquivalenceKey { get; }
46 references to EquivalenceKey
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (4)
AbstractCodeActionOrUserDiagnosticTest.cs (3)
829var key = (diagnostic, codeAction.EquivalenceKey); 833var messageSuffix = codeAction.EquivalenceKey != null 842- Shared equivalence key: '{codeAction.EquivalenceKey ?? "<null>"}'{messageSuffix}");
AbstractUserDiagnosticTest.cs (1)
173var equivalenceKey = actions[index].EquivalenceKey;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
ConvertToRecord\ConvertToRecordCodeRefactoringTests.cs (2)
95Assert.Equal(codeAction.EquivalenceKey, action.EquivalenceKey);
Diagnostics\Suppression\SuppressionTests.cs (2)
473var cs0219EquivalenceKey = cs0219Fixes[0].Action.EquivalenceKey; 480var cs0168EquivalenceKey = cs0168Fixes.Single().Action.EquivalenceKey;
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (6)
SuggestedAction.cs (6)
308if (CodeAction.EquivalenceKey == null || otherCodeAction.EquivalenceKey == null) 313return CodeAction.EquivalenceKey == otherCodeAction.EquivalenceKey; 318if (CodeAction.EquivalenceKey == null) 323return Hash.Combine(Provider.GetHashCode(), CodeAction.EquivalenceKey.GetHashCode());
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (4)
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (3)
829var key = (diagnostic, codeAction.EquivalenceKey); 833var messageSuffix = codeAction.EquivalenceKey != null 842- Shared equivalence key: '{codeAction.EquivalenceKey ?? "<null>"}'{messageSuffix}");
Diagnostics\AbstractUserDiagnosticTest.cs (1)
173var equivalenceKey = actions[index].EquivalenceKey;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
Suggestions\SuggestedActions\SuggestedAction.cs (6)
308if (CodeAction.EquivalenceKey == null || otherCodeAction.EquivalenceKey == null) 313return CodeAction.EquivalenceKey == otherCodeAction.EquivalenceKey; 318if (CodeAction.EquivalenceKey == null) 323return Hash.Combine(Provider.GetHashCode(), CodeAction.EquivalenceKey.GetHashCode());
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
212if (currentAction is { EquivalenceKey: var equivalenceKey }
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
127codeActionEquivalenceKey: action?.EquivalenceKey!, // FixAllState supports null equivalence key. This should still be supported.
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\CodeFixes\CodeFixService.cs (2)
585applicableDiagnostics = FilterApplicableDiagnostics(applicableDiagnostics, action.EquivalenceKey, 743fixes[0].Action.EquivalenceKey,
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (3)
226if (actionCount > 1 && action.EquivalenceKey == null) 254var fixAllStateForScope = fixAllState.With(scope: scope, codeActionEquivalenceKey: action.EquivalenceKey); 604if (actionCount > 1 && action.EquivalenceKey == null)
Microsoft.CodeAnalysis.Workspaces (15)
CodeActions\CodeAction.cs (7)
61/// Two code actions are treated as equivalent if they have equal non-null <see cref="EquivalenceKey"/> values and were generated 70/// If two code actions that could be treated as equivalent do not have equal <see cref="EquivalenceKey"/> values, Visual Studio behavior 72/// equal <see cref="EquivalenceKey"/> values, Visual Studio behavior may appear incorrect. 132return type.GetTelemetryId(scope, EquivalenceKey); 392/// <param name="equivalenceKey">Optional value used to determine the equivalence of the <see cref="CodeAction"/> with other <see cref="CodeAction"/>s. See <see cref="CodeAction.EquivalenceKey"/>.</param> 415/// <param name="equivalenceKey">Optional value used to determine the equivalence of the <see cref="CodeAction"/> with other <see cref="CodeAction"/>s. See <see cref="CodeAction.EquivalenceKey"/>.</param> 539equivalenceKey.Append((action.EquivalenceKey ?? action.GetHashCode().ToString()) + ";");
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
241if (currentAction is { EquivalenceKey: var equivalenceKey }
CodeFixes\FixAllOccurrences\FixAllContext.cs (4)
61/// The <see cref="CodeAction.EquivalenceKey"/> value expected of a <see cref="CodeAction"/> participating in this fix all. 105/// <param name="codeActionEquivalenceKey">The <see cref="CodeAction.EquivalenceKey"/> value expected of a <see cref="CodeAction"/> participating in this fix all.</param> 142/// <param name="codeActionEquivalenceKey">The <see cref="CodeAction.EquivalenceKey"/> value expected of a <see cref="CodeAction"/> participating in this fix all.</param> 179/// <param name="codeActionEquivalenceKey">The <see cref="CodeAction.EquivalenceKey"/> value expected of a <see cref="CodeAction"/> participating in this fix all.</param>
CodeRefactorings\FixAllOccurences\FixAllContext.cs (1)
44/// The <see cref="CodeAction.EquivalenceKey"/> value expected of a <see cref="CodeAction"/> participating in this fix all.
CodeRefactorings\FixAllOccurences\FixAllState.cs (2)
44optionsProvider, fixAllScope, codeAction.Title, codeAction.EquivalenceKey) 57optionsProvider, fixAllScope, codeAction.Title, codeAction.EquivalenceKey)