15 references to WithDocumentFilePath
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
AbstractCodeActionOrUserDiagnosticTest.cs (1)
217newSolution = newSolution.WithDocumentFilePath(documentId, Path.Combine(projectRootFilePath, document.FilePath));
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (1)
217newSolution = newSolution.WithDocumentFilePath(documentId, Path.Combine(projectRootFilePath, document.FilePath));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
327solution = solution.WithDocumentFilePath(document.Id, GetDocumentFilePathFromName(document.Name));
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Document.cs (1)
359=> this.Project.Solution.WithDocumentFilePath(this.Id, filePath).GetDocument(this.Id)!;
Workspace\Workspace.cs (1)
906newSolution = newSolution.WithDocumentFilePath(documentId, newInfo.FilePath!);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
225var newSolution1 = solution.WithDocumentFilePath(documentId, path); 229var newSolution2 = newSolution1.WithDocumentFilePath(documentId, path); 233var newSolution3 = solution.WithDocumentFilePath(documentId, ""); 238Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFilePath(documentId, filePath: null!)); 240Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFilePath(null!, path)); 241Assert.Throws<InvalidOperationException>(() => solution.WithDocumentFilePath(s_unrelatedDocumentId, path)); 2627solution = solution.WithDocumentFilePath(documentId, NewFilePath); 3274.WithDocumentFilePath(did, "document path"); 4155solution = solution.WithDocumentFilePath(documentId, @"Z:\NewPath.txt");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
124solution = solution.WithDocumentFilePath(document.Id, "C:\\" + document.Name);