13 references to WithDocumentFolders
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
487document = document.Project.Solution.WithDocumentFolders(document.Id, newDocumentInfo.Folders).GetDocument(document.Id)!;
Microsoft.CodeAnalysis.Workspaces (3)
Rename\Renamer.RenameDocumentActionSet.cs (1)
98.WithDocumentFolders(documentId, _documentFolders);
Workspace\Solution\Document.cs (1)
349=> this.Project.Solution.WithDocumentFolders(this.Id, folders).GetDocument(this.Id)!;
Workspace\Workspace.cs (1)
898newSolution = newSolution.WithDocumentFolders(documentId, newInfo.Folders);
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SolutionTests\SolutionTests.cs (8)
194var newSolution1 = solution.WithDocumentFolders(documentId, folders); 197var newSolution2 = newSolution1.WithDocumentFolders(documentId, folders); 201var newSolution3 = solution.WithDocumentFolders(documentId, new string[0]); 204var newSolution4 = solution.WithDocumentFolders(documentId, ImmutableArray<string>.Empty); 207var newSolution5 = solution.WithDocumentFolders(documentId, null); 210Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFolders(documentId, folders: new string[] { null! })); 212Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFolders(null!, folders)); 213Assert.Throws<InvalidOperationException>(() => solution.WithDocumentFolders(s_unrelatedDocumentId, folders));
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
208await VerifySolutionUpdate(code, s => s.WithDocumentFolders(s.Projects.First().Documents.First().Id, new[] { "test" }));