File: SolutionCrawler\CompilerDiagnosticsScope.cs
Web Access
Project: ..\..\..\src\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj (Microsoft.CodeAnalysis.Workspaces)
// 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.
 
namespace Microsoft.CodeAnalysis.SolutionCrawler
{
    internal enum CompilerDiagnosticsScope
    {
        // NOTE: Do not change existing field ordering/values as this scope is saved as a user option,
        //       and that would break users who have saved a non-default scope for the option.
 
        /// <summary>
        /// Compiler warnings and errors are disabled for all documents.
        /// </summary>
        None = 0,
 
        /// <summary>
        /// Compiler warnings and errors are computed for visible documents
        /// and open documents which had errors/warnings in the prior solution snapshot.
        /// </summary>
        VisibleFilesAndFilesWithPreviouslyReportedDiagnostics = 1,
 
        /// <summary>
        /// Compiler warnings and errors are computed for all open documents.
        /// </summary>
        OpenFiles = 2,
 
        /// <summary>
        /// Compiler warnings and errors are computed for all documents in the current solution.
        /// </summary>
        FullSolution = 3,
    }
}