5 references to WithName
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\Extensions.cs (1)
34/// Used to generate the correct Uri when rename a document, because calling <seealso cref="Document.WithName(string)"/> doesn't update the file path.
Microsoft.CodeAnalysis.Workspaces (1)
Rename\Renamer.RenameSymbolDocumentAction.cs (1)
90var documentWithNewName = document.WithName(newDocumentName);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
WorkspaceTests\AdhocWorkspaceTests.cs (2)
419var changedDoc = originalDoc.WithName(newName); 552var changedDoc = originalDoc.WithName(newName).WithFolders(["A", "B"]).WithFilePath(newPath);
WorkspaceTests\WorkspaceTests.cs (1)
42var changedDoc = originalDoc.WithName(newName);