28 references to UpdateAction
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (12)
UnusedReferences\UnusedReferencesRemoverTests.cs (12)
123[InlineData(UpdateAction.None, false)] 124[InlineData(UpdateAction.None, true)] 125[InlineData(UpdateAction.TreatAsUnused, false)] 126[InlineData(UpdateAction.TreatAsUsed, true)] 127internal async Task ApplyReferenceUpdates_NoChangeUpdates_AreNotApplied(UpdateAction action, bool treatAsUsed) 137[InlineData(UpdateAction.Remove, false)] 138[InlineData(UpdateAction.Remove, true)] 139[InlineData(UpdateAction.TreatAsUnused, true)] 140[InlineData(UpdateAction.TreatAsUsed, false)] 141internal async Task ApplyReferenceUpdates_ChangeUpdates_AreApplied(UpdateAction action, bool treatAsUsed) 154var noChangeUpdate = new ReferenceUpdate(UpdateAction.None, PackageReference(UsedAssemblyPath)); 155var changeUpdate = new ReferenceUpdate(UpdateAction.Remove, PackageReference(UnusedAssemblyPath));
Microsoft.CodeAnalysis.Features (5)
UnusedReferences\ReferenceUpdate.cs (2)
7internal sealed class ReferenceUpdate(UpdateAction action, ReferenceInfo referenceInfo) 12public UpdateAction Action { get; set; } = action;
UnusedReferences\UnusedReferencesRemover.cs (3)
285if (referenceUpdate.Action == UpdateAction.TreatAsUnused && 290else if (referenceUpdate.Action == UpdateAction.TreatAsUsed && 295else if (referenceUpdate.Action == UpdateAction.None)
Microsoft.VisualStudio.LanguageServices (11)
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (4)
308if (entry.TryGetValue(UnusedReferencesTableKeyNames.UpdateAction, out UpdateAction action)) 312UpdateAction.Remove => ServicesVSResources.Remove, 3210 => UpdateAction.TreatAsUsed, 3221 => UpdateAction.Remove,
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (1)
145if (keyName != UnusedReferencesTableKeyNames.UpdateAction || content is not UpdateAction action)
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (3)
142.WhereAsArray(update => update.Action != UpdateAction.TreatAsUsed || !update.ReferenceInfo.TreatAsUsed); 198.SelectAsArray(reference => new ReferenceUpdate(reference.TreatAsUsed ? UpdateAction.TreatAsUsed : UpdateAction.Remove, reference));
UnusedReferences\UnusedReferenceExtensions.cs (3)
27UpdateAction.TreatAsUsed => ProjectSystemUpdateAction.SetTreatAsUsed, 28UpdateAction.TreatAsUnused => ProjectSystemUpdateAction.UnsetTreatAsUsed, 29UpdateAction.Remove => ProjectSystemUpdateAction.Remove,