5 references to WithName
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\Extensions.cs (1)
36
/// 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)
90
var documentWithNewName = document.
WithName
(newDocumentName);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
WorkspaceTests\AdhocWorkspaceTests.cs (2)
419
var changedDoc = originalDoc.
WithName
(newName);
552
var changedDoc = originalDoc.
WithName
(newName).WithFolders(["A", "B"]).WithFilePath(newPath);
WorkspaceTests\WorkspaceTests.cs (1)
42
var changedDoc = originalDoc.
WithName
(newName);