11 references to WithOptions
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionServiceTests.cs (1)
135
Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.
WithOptions
(
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1471
var 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)
78
document = document.Project.Solution.
WithOptions
(solutionOptions).GetRequiredDocument(document.Id);
127
var solutionWithUpdatedOptions = workspace.CurrentSolution.
WithOptions
(updatedSolutionOptions);
Simplifier\SimplifierTests.cs (1)
90
var solutionWithUpdatedOptions = workspace.CurrentSolution.
WithOptions
(updatedOptions);
SolutionTests\SolutionTests.cs (1)
5396
var s1 = s0.
WithOptions
(options);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (2)
73
var newSolution1 = workspace1.CurrentSolution.
WithOptions
(newSet);
104
var newSolution1 = workspace1.CurrentSolution.
WithOptions
(newSet);
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
496
solution = solution.
WithOptions
(solution.Options