22 references to GetAddedDocuments
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (4)
672Assert.Equal(1, changes.GetAddedDocuments().Count()); 674var changedDocuments = changes.GetChangedDocuments().Concat(changes.GetAddedDocuments()); 718Assert.Equal(1, changes.GetAddedDocuments().Count()); 720var changedDocuments = changes.GetChangedDocuments().Concat(changes.GetAddedDocuments());
Microsoft.CodeAnalysis.EditorFeatures (4)
CodeActions\CodeActionEditHandlerService.cs (1)
214projectChange.GetAddedDocuments().Any() ||
Preview\AbstractPreviewFactoryService.cs (1)
100foreach (var documentId in projectChanges.GetAddedDocuments())
Preview\SolutionChangeSummary.cs (2)
26TotalFilesAffected += p.GetAddedDocuments().Count() + 36if (p.GetAddedDocuments().Any() || p.GetRemovedDocuments().Any() ||
Microsoft.CodeAnalysis.Features (1)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
417foreach (var addedDocumentId in projectChanges.GetAddedDocuments())
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
263projectChanges.GetAddedDocuments().Any() ||
Handler\CodeActions\CodeActionResolveHelper.cs (2)
100if (projectChange.GetAddedDocuments().Any() 168projectChanges.SelectMany(pc => pc.GetAddedDocuments()),
Microsoft.CodeAnalysis.Workspaces (6)
CodeActions\CodeAction_Cleanup.cs (1)
66.SelectMany(p => p.GetChangedDocuments(onlyGetDocumentsWithTextChanges: true).Concat(p.GetAddedDocuments()))
CodeActions\Operations\ApplyChangesOperation.cs (1)
100changedProject.GetAddedDocuments().Any() ||
Editing\SymbolEditor.cs (1)
73foreach (var id in projectChanges.GetAddedDocuments())
Workspace\Workspace.cs (3)
317addedDocumentIds.AddRange(projectChanges.GetAddedDocuments()); 1733if (!CanApplyChange(ApplyChangesKind.AddDocument) && projectChanges.GetAddedDocuments().Any()) 1939foreach (var documentId in projectChanges.GetAddedDocuments())
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
286return changes.GetAddedDocuments().Any() ||
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
SolutionUtilities.cs (2)
70var documentId = projectDifferences.GetAddedDocuments().Single(); 93addedDocuments.AddRange(projectDifference.GetAddedDocuments());
Microsoft.VisualStudio.LanguageServices (1)
Preview\PreviewEngine.cs (1)
115var addedDocuments = projectChanges.SelectMany(p => p.GetAddedDocuments());