File: Tagging\TaggerTextChangeBehavior.cs
Web Access
Project: src\src\EditorFeatures\Core\Microsoft.CodeAnalysis.EditorFeatures.csproj (Microsoft.CodeAnalysis.EditorFeatures)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using System;
using System.Threading;
 
namespace Microsoft.CodeAnalysis.Editor.Tagging;
 
/// <summary>
/// Flags that affect how the tagger infrastructure responds to text changes.
/// </summary>
[Flags]
internal enum TaggerTextChangeBehavior
{
    /// <summary>
    /// The async tagger infrastructure will not track any text changes and will not do 
    /// anything special in the presence of them.
    /// </summary>
    None = 0,
 
    /// <summary>
    /// The async tagger infrastructure will track text changes to the subject buffer it is attached to. On any edit,
    /// tags that intersect the text change range will immediately removed.
    /// </summary>
    RemoveTagsThatIntersectEdits = 1 << 1,
 
    /// <summary>
    /// The async tagger infrastructure will track text changes to the subject buffer it is attached to. On any edit all
    /// tags will we be removed.
    /// </summary>
    RemoveAllTags = 1 << 2,
}