22 references to WithChangedOption
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Completion\CompletionServiceTests.cs (1)
137
workspace.CurrentSolution.Options.
WithChangedOption
(new OptionKey(ThirdPartyOption.Instance, LanguageNames.CSharp), 1))));
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
1399
var newOptions = solution.Options.
WithChangedOption
(optionKey, changedValue);
1440
primaryWorkspace.Options = primaryWorkspace.Options.
WithChangedOption
(optionKey, FormattingOptions2.IndentStyle.Block);
Microsoft.CodeAnalysis.Workspaces (2)
Options\OptionSet.cs (2)
54
=>
WithChangedOption
(new OptionKey(option), value);
66
=>
WithChangedOption
(new OptionKey(option, language), value);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
108
updatedOptions = updatedOptions.
WithChangedOption
(new OptionKey(option, language), newValue);
Microsoft.CodeAnalysis.Workspaces.UnitTests (16)
Formatter\FormatterTests.cs (4)
74
WithChangedOption
(new OptionKey(FormattingOptions.UseTabs, NoCompilationConstants.LanguageName), false).
75
WithChangedOption
(new OptionKey(FormattingOptions.TabSize, NoCompilationConstants.LanguageName), 1).
76
WithChangedOption
(new OptionKey(FormattingOptions.IndentationSize, NoCompilationConstants.LanguageName), 7).
77
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);
139
var updatedSet = set.
WithChangedOption
(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInProperties), true);
165
var updatedSet = set.
WithChangedOption
(optionKey, newValue);
Simplifier\SimplifierTests.cs (1)
122
updatedOptions = updatedOptions.
WithChangedOption
(key, current.WithValue(newValue));
WorkspaceServiceTests\GlobalOptionServiceTests.cs (7)
71
var newSet = optionSet.
WithChangedOption
(optionKey, 2).
WithChangedOption
(perLanguageOptionKey, 3);
103
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);