45 references to CompilerDiagnosticsScope
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
882var compilerDiagnosticsScope = analysisScope.ToEquivalentCompilerDiagnosticsScope();
Microsoft.CodeAnalysis.LanguageServer.Protocol (20)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
210return globalOptions.GetBackgroundCompilerAnalysisScope(project.Language) != CompilerDiagnosticsScope.None;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (6)
36CompilerDiagnosticsScope compilerDiagnosticsScope, 74CompilerDiagnosticsScope compilerDiagnosticsScope, 93CompilerDiagnosticsScope.None => false, 96CompilerDiagnosticsScope.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics => isVisibleDocument || (isOpenDocument && !previousData.Items.IsEmpty), 99CompilerDiagnosticsScope.OpenFiles => isOpenDocument, 102CompilerDiagnosticsScope.FullSolution => true,
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
56var compilerDiagnosticsScope = GlobalOptions.GetBackgroundCompilerAnalysisScope(document.Project.Language);
Features\Options\SolutionCrawlerOptionsStorage.cs (12)
28public static readonly PerLanguageOption2<CompilerDiagnosticsScope> CompilerDiagnosticsScopeOption = new( 29"dotnet_compiler_diagnostics_scope", defaultValue: CompilerDiagnosticsScope.OpenFiles, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<CompilerDiagnosticsScope>()); 70public static CompilerDiagnosticsScope GetBackgroundCompilerAnalysisScope(this IGlobalOptionService globalOptions, string language) 74return CompilerDiagnosticsScope.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics; 79BackgroundAnalysisScope.ActiveFile => CompilerDiagnosticsScope.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics, 80BackgroundAnalysisScope.OpenFiles => CompilerDiagnosticsScope.OpenFiles, 81BackgroundAnalysisScope.FullSolution => CompilerDiagnosticsScope.FullSolution, 82BackgroundAnalysisScope.None => CompilerDiagnosticsScope.None, 95return GetBackgroundCompilerAnalysisScope(globalOptions, language) == CompilerDiagnosticsScope.FullSolution; 143compilerFullSolutionAnalysisEnabled = GetBackgroundCompilerAnalysisScope(globalOptions, language) == CompilerDiagnosticsScope.FullSolution; 157var compilerDiagnosticsDisabled = GetBackgroundCompilerAnalysisScope(globalOptions, language) == CompilerDiagnosticsScope.None;
Microsoft.CodeAnalysis.Workspaces (5)
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (5)
12public static CompilerDiagnosticsScope ToEquivalentCompilerDiagnosticsScope(this BackgroundAnalysisScope backgroundAnalysisScope) 15BackgroundAnalysisScope.None => CompilerDiagnosticsScope.None, 16BackgroundAnalysisScope.ActiveFile => CompilerDiagnosticsScope.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics, 17BackgroundAnalysisScope.OpenFiles => CompilerDiagnosticsScope.OpenFiles, 18BackgroundAnalysisScope.FullSolution => CompilerDiagnosticsScope.FullSolution,
Microsoft.VisualStudio.LanguageServices.CSharp (8)
Options\AdvancedOptionPageStrings.cs (8)
57public static CompilerDiagnosticsScope Option_Compiler_Diagnostics_Scope_None_Tag 58=> CompilerDiagnosticsScope.None; 60public static CompilerDiagnosticsScope Option_Compiler_Diagnostics_Scope_Visible_Files_Tag 61=> CompilerDiagnosticsScope.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics; 63public static CompilerDiagnosticsScope Option_Compiler_Diagnostics_Scope_Open_Files_Tag 64=> CompilerDiagnosticsScope.OpenFiles; 66public static CompilerDiagnosticsScope Option_Compiler_Diagnostics_Scope_Full_Solution_Tag 67=> CompilerDiagnosticsScope.FullSolution;
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (3)
InProcess\WorkspaceInProcess.cs (3)
94var compilerScope = value ? CompilerDiagnosticsScope.FullSolution : CompilerDiagnosticsScope.OpenFiles;
Microsoft.VisualStudio.LanguageServices.VisualBasic (8)
Options\AdvancedOptionPageStrings.vb (8)
64Public ReadOnly Property Option_Compiler_Diagnostics_Scope_None_Tag As CompilerDiagnosticsScope = 65CompilerDiagnosticsScope.None 67Public ReadOnly Property Option_Compiler_Diagnostics_Scope_Visible_Files_Tag As CompilerDiagnosticsScope = 68CompilerDiagnosticsScope.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics 70Public ReadOnly Property Option_Compiler_Diagnostics_Scope_Open_Files_Tag As CompilerDiagnosticsScope = 71CompilerDiagnosticsScope.OpenFiles 73Public ReadOnly Property Option_Compiler_Diagnostics_Scope_Full_Solution_Tag As CompilerDiagnosticsScope = 74CompilerDiagnosticsScope.FullSolution