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