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