9 references to WithDocumentName
Microsoft.CodeAnalysis.Workspaces (3)
Rename\ConflictResolution.cs (1)
95: _newSolutionWithoutRenamedDocument.WithDocumentName(_renamedDocument.Value.documentId, _renamedDocument.Value.newName);
Rename\Renamer.RenameDocumentActionSet.cs (1)
96.WithDocumentName(documentId, _documentName)
Workspace\Solution\Document.cs (1)
404=> this.Project.Solution.WithDocumentName(this.Id, name).GetRequiredDocument(Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (5)
178var newSolution1 = solution.WithDocumentName(documentId, name); 181var newSolution2 = newSolution1.WithDocumentName(documentId, name); 184Assert.Throws<ArgumentNullException>(() => solution.WithDocumentName(documentId, name: null!)); 186Assert.Throws<ArgumentNullException>(() => solution.WithDocumentName(null!, name)); 187Assert.Throws<InvalidOperationException>(() => solution.WithDocumentName(s_unrelatedDocumentId, name));
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.RenameDocumentUndoUnit.cs (1)
35var updatedSolution = _workspace.CurrentSolution.WithDocumentName(documentId, _toName);