42 references to CompilerDiagnosticsScope
Microsoft.CodeAnalysis.EditorFeatures (2)
ExternalAccess\VSTypeScript\Api\VSTypeScriptGlobalOptions.cs (2)
30openFilesOnly ? CompilerDiagnosticsScope.OpenFiles : CompilerDiagnosticsScope.FullSolution);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
552var compilerDiagnosticsScope = analysisScope.ToEquivalentCompilerDiagnosticsScope();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
FSharpGlobalOptions.cs (2)
39openFilesOnly ? CompilerDiagnosticsScope.OpenFiles : CompilerDiagnosticsScope.FullSolution);
Microsoft.CodeAnalysis.Features (9)
Diagnostics\Options\SolutionCrawlerOptionsStorage.cs (8)
23public static readonly PerLanguageOption2<CompilerDiagnosticsScope> CompilerDiagnosticsScopeOption = new( 24"dotnet_compiler_diagnostics_scope", defaultValue: CompilerDiagnosticsScope.OpenFiles, group: s_backgroundAnalysisOptionGroup, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<CompilerDiagnosticsScope>()); 47public static CompilerDiagnosticsScope GetBackgroundCompilerAnalysisScope(this IGlobalOptionService globalOptions, string language) 51return CompilerDiagnosticsScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics; 65return GetBackgroundCompilerAnalysisScope(globalOptions, language) == CompilerDiagnosticsScope.FullSolution; 113compilerFullSolutionAnalysisEnabled = GetBackgroundCompilerAnalysisScope(globalOptions, language) == CompilerDiagnosticsScope.FullSolution; 127var compilerDiagnosticsDisabled = GetBackgroundCompilerAnalysisScope(globalOptions, language) == CompilerDiagnosticsScope.None;
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
62return globalOptions.GetBackgroundCompilerAnalysisScope(project.Language) != CompilerDiagnosticsScope.None;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (15)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (8)
317private protected Task<TestLspServer> CreateTestWorkspaceWithDiagnosticsAsync(string markup, bool mutatingLspWorkspace, BackgroundAnalysisScope analyzerDiagnosticsScope, bool useVSDiagnostics, CompilerDiagnosticsScope? compilerDiagnosticsScope = null, IEnumerable<DiagnosticAnalyzer>? additionalAnalyzers = null) 320private protected Task<TestLspServer> CreateTestWorkspaceWithDiagnosticsAsync(string[] markups, bool mutatingLspWorkspace, BackgroundAnalysisScope analyzerDiagnosticsScope, bool useVSDiagnostics, CompilerDiagnosticsScope? compilerDiagnosticsScope = null, IEnumerable<DiagnosticAnalyzer>? additionalAnalyzers = null) 323private protected Task<TestLspServer> CreateTestWorkspaceFromXmlAsync(string xmlMarkup, bool mutatingLspWorkspace, BackgroundAnalysisScope analyzerDiagnosticsScope, bool useVSDiagnostics, CompilerDiagnosticsScope? compilerDiagnosticsScope = null, IEnumerable<DiagnosticAnalyzer>? additionalAnalyzers = null) 328CompilerDiagnosticsScope? compilerDiagnosticsScope, 337BackgroundAnalysisScope.None => CompilerDiagnosticsScope.None, 338BackgroundAnalysisScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics => CompilerDiagnosticsScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics, 339BackgroundAnalysisScope.OpenFiles => CompilerDiagnosticsScope.OpenFiles, 340BackgroundAnalysisScope.FullSolution => CompilerDiagnosticsScope.FullSolution,
Diagnostics\PullDiagnosticTests.cs (7)
221GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, CompilerDiagnosticsScope.OpenFiles, useVSDiagnostics)); 605GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, CompilerDiagnosticsScope.OpenFiles, useVSDiagnostics, WellKnownLspServerKinds.RazorLspServer)); 625GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, CompilerDiagnosticsScope.OpenFiles, useVSDiagnostics, WellKnownLspServerKinds.LiveShareLspServer)); 1087GetInitializationOptions(BackgroundAnalysisScope.FullSolution, CompilerDiagnosticsScope.FullSolution, useVSDiagnostics)); 1464GetInitializationOptions(BackgroundAnalysisScope.FullSolution, CompilerDiagnosticsScope.FullSolution, useVSDiagnostics, sourceGeneratedMarkups: [markup1, markup2])); 2215options.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.CSharp, CompilerDiagnosticsScope.OpenFiles); 2250options.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.CSharp, CompilerDiagnosticsScope.FullSolution);
Microsoft.CodeAnalysis.Workspaces (5)
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (5)
11public static CompilerDiagnosticsScope ToEquivalentCompilerDiagnosticsScope(this BackgroundAnalysisScope backgroundAnalysisScope) 14BackgroundAnalysisScope.None => CompilerDiagnosticsScope.None, 15BackgroundAnalysisScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics => CompilerDiagnosticsScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics, 16BackgroundAnalysisScope.OpenFiles => CompilerDiagnosticsScope.OpenFiles, 17BackgroundAnalysisScope.FullSolution => CompilerDiagnosticsScope.FullSolution,
Microsoft.VisualStudio.LanguageServices.CSharp (8)
Options\AdvancedOptionPageStrings.cs (8)
58public static CompilerDiagnosticsScope Option_Compiler_Diagnostics_Scope_None_Tag 59=> CompilerDiagnosticsScope.None; 61public static CompilerDiagnosticsScope Option_Compiler_Diagnostics_Scope_Visible_Files_Tag 62=> CompilerDiagnosticsScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics; 64public static CompilerDiagnosticsScope Option_Compiler_Diagnostics_Scope_Open_Files_Tag 65=> CompilerDiagnosticsScope.OpenFiles; 67public static CompilerDiagnosticsScope Option_Compiler_Diagnostics_Scope_Full_Solution_Tag 68=> CompilerDiagnosticsScope.FullSolution;