11 references to WithOptions
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionServiceTests.cs (1)
135Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1471var newSolution = solution.WithOptions(newOptions);
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\DocumentExtensions.cs (1)
26=> document.Project.Solution.WithOptions(options).GetRequiredDocument(document.Id);
Shared\Extensions\ProjectExtensions.cs (1)
17=> project.Solution.WithOptions(options).GetProject(project.Id)!;
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Formatter\FormatterTests.cs (2)
78document = document.Project.Solution.WithOptions(solutionOptions).GetRequiredDocument(document.Id); 127var solutionWithUpdatedOptions = workspace.CurrentSolution.WithOptions(updatedSolutionOptions);
Simplifier\SimplifierTests.cs (1)
90var solutionWithUpdatedOptions = workspace.CurrentSolution.WithOptions(updatedOptions);
SolutionTests\SolutionTests.cs (1)
5396var s1 = s0.WithOptions(options);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (2)
73var newSolution1 = workspace1.CurrentSolution.WithOptions(newSet); 104var newSolution1 = workspace1.CurrentSolution.WithOptions(newSet);
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
496solution = solution.WithOptions(solution.Options