3 implementations of SetGlobalOption
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Options\GlobalOptionsTests.cs (1)
80public void SetGlobalOption<T>(Option2<T> option, T value)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorGlobalOptions.cs (1)
60public void SetGlobalOption<T>(Option2<T> option, T value) => throw new NotImplementedException();
Microsoft.CodeAnalysis.Workspaces (1)
Options\GlobalOptionService.cs (1)
136public void SetGlobalOption<T>(Option2<T> option, T value)
59 references to SetGlobalOption
IdeBenchmarks (1)
Lsp\LspCompletionSerializationBenchmarks.cs (1)
103globalOptions.SetGlobalOption(LspOptionsStorage.MaxCompletionListSize, -1);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
CompleteStatement\CSharpCompleteStatementCommandHandlerTests.cs (1)
4208globalOptions.SetGlobalOption(CompleteStatementOptionsStorage.AutomaticallyCompleteStatementOnSemicolon, false);
ConvertNamespace\ConvertNamespaceCommandHandlerTests.cs (1)
93testState.Workspace.GlobalOptions.SetGlobalOption(CompleteStatementOptionsStorage.AutomaticallyCompleteStatementOnSemicolon, false);
Formatting\RazorLineFormattingOptionsTests.cs (2)
43globalOptions.SetGlobalOption(RazorLineFormattingOptionsStorage.UseTabs, true); 44globalOptions.SetGlobalOption(RazorLineFormattingOptionsStorage.TabSize, 10);
Microsoft.CodeAnalysis.EditorFeatures (8)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (6)
147_globalOptionService.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameInComments, value); 157_globalOptionService.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameInStrings, value); 167_globalOptionService.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameFile, value); 177_globalOptionService.SetGlobalOption(InlineRenameSessionOptionsStorage.PreviewChanges, value); 187_globalOptionService.SetGlobalOption(InlineRenameSessionOptionsStorage.RenameOverloads, value); 199_globalOptionService.SetGlobalOption(InlineRenameUIOptionsStorage.CollapseUI, value);
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (1)
351_globalOptionService.SetGlobalOption(InlineRenameUIOptionsStorage.CollapseSuggestionsPanel, !IsAutomaticSuggestionsEnabled);
Options\LegacyGlobalOptionsWorkspaceService.cs (1)
41set => _globalOptions.SetGlobalOption(s_generateOverridesOption, value);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
TaskList\AbstractTaskListTests.cs (1)
32workspace.GlobalOptions.SetGlobalOption(TaskListOptionsStorage.Descriptors, descriptors);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (3)
RazorGlobalOptions.cs (2)
33set => _globalOptions.SetGlobalOption(RazorLineFormattingOptionsStorage.UseTabs, value); 39set => _globalOptions.SetGlobalOption(RazorLineFormattingOptionsStorage.TabSize, value);
Testing\TestRoslynOptionsHelper.cs (1)
15globalOptions.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, SourceGeneratorExecutionPreference.Automatic);
Microsoft.CodeAnalysis.LanguageServer (2)
Program.cs (1)
111globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, SourceGeneratorExecutionPreference.Automatic);
ServerConfigurationFactory.cs (1)
39_globalOptionService.SetGlobalOption(LspOptionsStorage.LspUsingDevkitFeatures, isDevkitEnabled);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (13)
CodeLens\CSharpCodeLensTests.cs (3)
497OptionUpdater = (globalOptions) => globalOptions.SetGlobalOption(LspOptionsStorage.LspUsingDevkitFeatures, false) 528OptionUpdater = (globalOptions) => globalOptions.SetGlobalOption(LspOptionsStorage.LspUsingDevkitFeatures, false) 559OptionUpdater = (globalOptions) => globalOptions.SetGlobalOption(LspOptionsStorage.LspUsingDevkitFeatures, true)
Completion\CompletionFeaturesTests.cs (4)
124testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ForceExpandedCompletionIndexCreation, true); 211testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ForceExpandedCompletionIndexCreation, true); 705testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ForceExpandedCompletionIndexCreation, true); 1100globalOptions.SetGlobalOption(LspOptionsStorage.MaxCompletionListSize, listMaxSize);
Completion\CompletionTests.cs (2)
313testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ForceExpandedCompletionIndexCreation, true); 1411globalOptions.SetGlobalOption(LspOptionsStorage.MaxCompletionListSize, listMaxSize);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
68optionService.SetGlobalOption(TaskListOptionsStorage.ComputeTaskListItemsForClosedFiles, includeTaskListItems);
Diagnostics\PullDiagnosticTests.cs (1)
1167testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(
Options\SolutionAnalyzerConfigOptionsUpdaterTests.cs (2)
89globalOptions.SetGlobalOption(FormattingOptions2.InsertFinalNewLine, false); 287globalOptions.SetGlobalOption(option, true);
Microsoft.VisualStudio.LanguageServices (10)
ColorSchemes\ColorSchemeApplier.Settings.cs (2)
137_globalOptions.SetGlobalOption(ColorSchemeOptionsStorage.ColorScheme, colorScheme); 138_globalOptions.SetGlobalOption(ColorSchemeOptionsStorage.LegacyUseEnhancedColors, ColorSchemeOptionsStorage.UseEnhancedColors.Migrated);
DocumentOutline\DocumentOutlineView.xaml.cs (1)
220_globalOptionService.SetGlobalOption(DocumentOutlineOptionsStorage.DocumentOutlineSortOrder, sortOption);
ExternalAccess\Pythia\PythiaGlobalOptions.cs (2)
27set => _globalOptions.SetGlobalOption(s_showDebugInfoOption, value); 33set => _globalOptions.SetGlobalOption(s_removeRecommendationLimitOption, value);
FindReferences\StreamingFindUsagesPresenter.cs (1)
239_globalOptions.SetGlobalOption(FindUsagesPresentationOptionsStorage.DefinitionGroupingPriority, window.GetDefinitionColumn().GroupingPriority);
KeybindingReset\KeybindingResetDetector.cs (4)
364_globalOptions.SetGlobalOption(KeybindingResetOptionsStorage.NeedsReset, false); 374_globalOptions.SetGlobalOption(KeybindingResetOptionsStorage.NeedsReset, false); 379_globalOptions.SetGlobalOption(KeybindingResetOptionsStorage.NeverShowAgain, true); 380_globalOptions.SetGlobalOption(KeybindingResetOptionsStorage.NeedsReset, false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Options\OptionViewModelTests.cs (1)
77workspace.GlobalOptions.SetGlobalOption(CSharpFormattingOptions2.SpacingAfterMethodDeclarationName, true);
Roslyn.VisualStudio.Next.UnitTests (16)
Services\ServiceHubServicesTests.cs (16)
710globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, executionPreference); 794globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, executionPreference); 849globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, executionPreference); 902globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 953globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 994globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 1037globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 1089globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 1142globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 1195globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 1240globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 1285globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 1328globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution); 1373globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, executionPreference); 1414globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, executionPreference); 1536globalOptionService.SetGlobalOption(WorkspaceConfigurationOptionsStorage.SourceGeneratorExecution, sourceGeneratorExecution);