23 references to AnalyzerConfigDocuments
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (3)
56if (project.AnalyzerConfigDocuments.Any()) 71foreach (var analyzerConfigDocument in project.AnalyzerConfigDocuments) 107return project.AnalyzerConfigDocuments.FirstOrDefault(d => d.FilePath == analyzerConfigPath);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
364var editorconfig = solution.Projects.SelectMany(p => p.AnalyzerConfigDocuments.Where(a => a.FilePath == EditorconfigPath)).Single();
Workspaces\WorkspaceTests_EditorFeatures.cs (7)
1080Assert.Equal(1, project.AnalyzerConfigDocuments.Count()); 1280Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1290Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1291Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Single().Name); 1341Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1348Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1349Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Single().Name);
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Updater\SettingsUpdaterBase.cs (1)
76.SelectMany(p => p.AnalyzerConfigDocuments)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeFixes\CodeFixServiceTests.cs (1)
403TextDocumentKind.AnalyzerConfigDocument => project.AnalyzerConfigDocuments.Single(),
CodeRefactorings\CodeRefactoringServiceTest.cs (2)
210var editorConfig = project.AnalyzerConfigDocuments.Single(t => t.Name == ".editorconfig"); 225var globalConfig = project.AnalyzerConfigDocuments.Single(t => t.Name == ".globalconfig");
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\TestUtils.cs (1)
236foreach (var document in project.Documents.Concat(project.AdditionalDocuments).Concat(project.AnalyzerConfigDocuments))
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (3)
56if (project.AnalyzerConfigDocuments.Any()) 71foreach (var analyzerConfigDocument in project.AnalyzerConfigDocuments) 107return project.AnalyzerConfigDocuments.FirstOrDefault(d => d.FilePath == analyzerConfigPath);
Workspace\Workspace.cs (1)
2039analyzerConfigDocuments: project.AnalyzerConfigDocuments.Select(CreateDocumentInfoWithText),
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
3243var analyzerConfigDocument = Assert.Single(project.AnalyzerConfigDocuments, d => d.FilePath == expectedEditorConfigPath); 3263Assert.Empty(project.AnalyzerConfigDocuments);
Microsoft.VisualStudio.LanguageServices (1)
EditorConfigSettings\SettingsEditorFactory.cs (1)
91if (!_workspace.CurrentSolution.Projects.Any(p => p.AnalyzerConfigDocuments.Any(editorconfig => StringComparer.OrdinalIgnoreCase.Equals(editorconfig.FilePath, filePath))))