80 references to OpenFiles
AnalyzerRunner (1)
Options.cs (1)
44=> FullSolutionAnalysis ? BackgroundAnalysisScope.FullSolution : BackgroundAnalysisScope.OpenFiles;
Microsoft.CodeAnalysis.EditorFeatures (1)
ExternalAccess\VSTypeScript\Api\VSTypeScriptGlobalOptions.cs (1)
35openFilesOnly ? BackgroundAnalysisScope.OpenFiles : BackgroundAnalysisScope.FullSolution);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Diagnostics\DiagnosticTaggerWrapper.cs (2)
50workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.OpenFiles); 51workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.VisualBasic, BackgroundAnalysisScope.OpenFiles);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (36)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (6)
672case BackgroundAnalysisScope.OpenFiles: 690(BackgroundAnalysisScope.OpenFiles or BackgroundAnalysisScope.FullSolution, false) => 1, 691(BackgroundAnalysisScope.OpenFiles, true) => 2, 711else if (analysisScope == BackgroundAnalysisScope.OpenFiles && 789case BackgroundAnalysisScope.OpenFiles: 924case BackgroundAnalysisScope.OpenFiles:
SolutionCrawler\WorkCoordinatorTests.cs (30)
86[InlineData(BackgroundAnalysisScope.OpenFiles)] 114[InlineData(BackgroundAnalysisScope.OpenFiles)] 130[InlineData(BackgroundAnalysisScope.OpenFiles)] 146[InlineData(BackgroundAnalysisScope.OpenFiles)] 164[InlineData(BackgroundAnalysisScope.OpenFiles)] 184[InlineData(BackgroundAnalysisScope.OpenFiles)] 208[InlineData(BackgroundAnalysisScope.OpenFiles)] 235[InlineData(BackgroundAnalysisScope.OpenFiles)] 254[InlineData(BackgroundAnalysisScope.OpenFiles)] 276[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 304[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 332[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 362[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 390[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 418[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 446[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 502var newAnalysisScope = BackgroundAnalysisScope.OpenFiles; 532[InlineData(BackgroundAnalysisScope.OpenFiles)] 554[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 588[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 618[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 644[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 690[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 716[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 759[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 799[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 854[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 962[InlineData(BackgroundAnalysisScope.OpenFiles, false)] 984(BackgroundAnalysisScope.OpenFiles or BackgroundAnalysisScope.FullSolution or BackgroundAnalysisScope.None, _) => 0, 991(BackgroundAnalysisScope.OpenFiles or BackgroundAnalysisScope.FullSolution or BackgroundAnalysisScope.None, _) => 0,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticProviderTests.vb (1)
263workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, language, BackgroundAnalysisScope.OpenFiles)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
FSharpGlobalOptions.cs (1)
38openFilesOnly ? BackgroundAnalysisScope.OpenFiles : BackgroundAnalysisScope.FullSolution);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
118BackgroundAnalysisScope.OpenFiles => isOpenDocument,
Features\Options\SolutionCrawlerOptionsStorage.cs (1)
80BackgroundAnalysisScope.OpenFiles => CompilerDiagnosticsScope.OpenFiles,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (30)
Diagnostics\PullDiagnosticTests.cs (30)
42await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 56await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 78markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics: true); 115await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics: true); 140await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 163await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 191await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, pullDiagnostics: false); 209GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, DiagnosticMode.Default)); 228GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, DiagnosticMode.Default)); 246await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 278await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 305await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 338await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 361await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 390await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 411await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 443await using var testLspServer = await CreateTestWorkspaceFromXmlAsync(workspaceXml, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 492await using var testLspServer = await CreateTestWorkspaceFromXmlAsync(workspaceXml, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics: false); 623GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, DiagnosticMode.SolutionCrawlerPush, WellKnownLspServerKinds.RazorLspServer)); 648GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, DiagnosticMode.SolutionCrawlerPush, WellKnownLspServerKinds.LiveShareLspServer)); 669await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, pullDiagnostics: true); 701await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 740await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 766await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 802new[] { markup1, markup2 }, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 835new[] { markup1 }, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 851new[] { markup1 }, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics); 881new[] { markup1 }, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics: true); 985new[] { markup1, markup2 }, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, pullDiagnostics: true); 1019await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(markup, BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, pullDiagnostics: true);
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (1)
17BackgroundAnalysisScope.OpenFiles => CompilerDiagnosticsScope.OpenFiles,
Microsoft.VisualStudio.LanguageServices (3)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (3)
155=> OnSetAnalysisScopeStatus((OleMenuCommand)sender, BackgroundAnalysisScope.OpenFiles); 194BackgroundAnalysisScope.OpenFiles => ServicesVSResources.Default_Open_Documents, 236=> OnSetAnalysisScope(BackgroundAnalysisScope.OpenFiles);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Options\AdvancedOptionPageStrings.cs (1)
37=> BackgroundAnalysisScope.OpenFiles;
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Options\AdvancedOptionPageStrings.vb (1)
44BackgroundAnalysisScope.OpenFiles