21 references to WithChangedOption
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionServiceTests.cs (1)
136
workspace.CurrentSolution.Options.
WithChangedOption
(new OptionKey(ThirdPartyOption.Instance, LanguageNames.CSharp), 1))));
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1470
var newOptions = solution.Options.
WithChangedOption
(optionKey, changedValue);
Microsoft.CodeAnalysis.Workspaces (2)
Options\OptionSet.cs (2)
53
=>
WithChangedOption
(new OptionKey(option), value);
65
=>
WithChangedOption
(new OptionKey(option, language), value);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
106
updatedOptions = updatedOptions.
WithChangedOption
(new OptionKey(option, language), newValue);
Microsoft.CodeAnalysis.Workspaces.UnitTests (16)
Formatter\FormatterTests.cs (4)
73
WithChangedOption
(new OptionKey(FormattingOptions.UseTabs, NoCompilationConstants.LanguageName), false).
74
WithChangedOption
(new OptionKey(FormattingOptions.TabSize, NoCompilationConstants.LanguageName), 1).
75
WithChangedOption
(new OptionKey(FormattingOptions.IndentationSize, NoCompilationConstants.LanguageName), 7).
76
WithChangedOption
(new OptionKey(FormattingOptions.NewLine, NoCompilationConstants.LanguageName), "\n");
Options\DocumentOptionSetTests.cs (4)
78
var updatedSet = set.
WithChangedOption
(optionKey, newValue);
110
var updatedSet = set.
WithChangedOption
(optionKey, newValue);
140
var updatedSet = set.
WithChangedOption
(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInProperties), true);
166
var updatedSet = set.
WithChangedOption
(optionKey, newValue);
Simplifier\SimplifierTests.cs (1)
120
updatedOptions = updatedOptions.
WithChangedOption
(key, current.WithValue(newValue));
WorkspaceServiceTests\GlobalOptionServiceTests.cs (7)
69
var newSet = optionSet.
WithChangedOption
(optionKey, 2).
WithChangedOption
(perLanguageOptionKey, 3);
101
var newSet = optionSet.
WithChangedOption
(perLanguageOptionKey, "EOLN");
216
optionSet = optionSet.
WithChangedOption
(key, true);
248
var newOptionSet = optionSet.
WithChangedOption
(optionKey, false);
264
var newOptionSet = optionSet.
WithChangedOption
(optionKey, false);
306
var newOptionSet = originalOptionSet.
WithChangedOption
(optionKey, newPublicValue);