3 implementations of IGlobalOptionService
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Options\GlobalOptionsTests.cs (1)
39internal sealed class TestGlobalOptions : IGlobalOptionService
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorGlobalOptions.cs (1)
50private sealed class TestGlobalOptionService : IGlobalOptionService
Microsoft.CodeAnalysis.Workspaces (1)
Options\GlobalOptionService.cs (1)
22[ImportMany] IEnumerable<Lazy<IOptionPersisterProvider>> optionPersisterProviders) : IGlobalOptionService
539 references to IGlobalOptionService
AnalyzerRunner (2)
IncrementalAnalyzerRunner.cs (2)
41var globalOptions = exportProvider.GetExports<IGlobalOptionService>().Single().Value;
IdeBenchmarks (4)
Lsp\LspCompletionBenchmarks.cs (2)
23private IGlobalOptionService? _globalOptionService; 96_globalOptionService = _testServer.TestWorkspace.GetService<IGlobalOptionService>();
Lsp\LspCompletionSerializationBenchmarks.cs (2)
102var globalOptions = testServer.TestWorkspace.GetService<IGlobalOptionService>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures (9)
AddImports\CSharpAddImportsPasteCommandHandler.cs (1)
31internal sealed class CSharpAddImportsPasteCommandHandler(IThreadingContext threadingContext, IGlobalOptionService globalOptions, IAsynchronousOperationListenerProvider listnerProvider)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
44IGlobalOptionService globalOptions) : IChainedCommandHandler<TypeCharCommandArgs> 48private readonly IGlobalOptionService _globalOptions = globalOptions;
ConvertNamespace\ConvertNamespaceCommandHandler.cs (2)
43IGlobalOptionService globalOptions) : IChainedCommandHandler<TypeCharCommandArgs> 56private readonly IGlobalOptionService _globalOptions = globalOptions;
EventHookup\EventHookupCommandHandler.cs (2)
47IGlobalOptionService globalOptions, 53private readonly IGlobalOptionService _globalOptions = globalOptions;
StringCopyPaste\StringCopyPasteCommandHandler.cs (2)
56IGlobalOptionService globalOptions, 67private readonly IGlobalOptionService _globalOptions = globalOptions;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (17)
BlockCommentEditing\CloseBlockCommentTests.cs (2)
250var globalOptions = workspace.GetService<IGlobalOptionService>();
Classification\SemanticClassifierTests.cs (2)
3535var globalOptions = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>();
Classification\TotalClassifierTests.cs (4)
2855var globalOptions = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 2969var globalOptions = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>();
CompleteStatement\CSharpCompleteStatementCommandHandlerTests.cs (2)
4543var globalOptions = workspace.GetService<IGlobalOptionService>();
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (4)
48private static IGlobalOptionService GetGlobalOptions(Workspace workspace) 49=> workspace.Services.SolutionServices.ExportProvider.GetExportedValue<IGlobalOptionService>(); 328var globalOptions = GetGlobalOptions(workspace); 364var globalOptions = GetGlobalOptions(workspace);
EventHookup\EventHookupTestState.cs (1)
38Workspace.GetService<IGlobalOptionService>(),
Formatting\RazorLineFormattingOptionsTests.cs (2)
42var globalOptions = ((IMefHostExportProvider)hostServices).GetExportedValue<IGlobalOptionService>();
Microsoft.CodeAnalysis.EditorFeatures (112)
AddImports\AbstractAddImportsPasteCommandHandler.cs (2)
29IGlobalOptionService globalOptions, 43private readonly IGlobalOptionService _globalOptions = globalOptions;
Adornments\AbstractAdornmentManagerProvider.cs (2)
24protected readonly IGlobalOptionService GlobalOptions; 29IGlobalOptionService globalOptions,
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.cs (2)
39IGlobalOptionService globalOptions) : ITaggerProvider 44private readonly IGlobalOptionService _globalOptions = globalOptions;
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.Tagger.cs (2)
31private readonly IGlobalOptionService _globalOptions; 43IGlobalOptionService globalOptions)
Classification\Syntactic\SyntacticClassificationTaggerProvider.cs (1)
25private IGlobalOptionService GlobalOptions => _taggerHost.GlobalOptions;
CodeDefinitionWindow\DefinitionContextTracker.cs (2)
47private readonly IGlobalOptionService _globalOptions; 57IGlobalOptionService globalOptions,
Copilot\CopilotWpfTextCreationListener.cs (2)
31private readonly IGlobalOptionService _globalOptions; 43IGlobalOptionService globalOptions,
EditorConfigSettings\Data\TieredAnalyzerConfigOptions.cs (2)
10internal sealed class TieredAnalyzerConfigOptions(AnalyzerConfigOptions editorConfigOptions, IGlobalOptionService globalOptions, string language, string editorConfigFileName) 13public readonly IGlobalOptionService GlobalOptions = globalOptions;
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
27IGlobalOptionService optionService)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProviderFactory.cs (1)
13IGlobalOptionService globalOptionService) : IWorkspaceSettingsProviderFactory<AnalyzerSetting>
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsWorkspaceServiceFactory.cs (1)
18IGlobalOptionService globalOptionService) : IWorkspaceServiceFactory
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsProvider.cs (1)
20public NamingStyleSettingsProvider(string fileName, NamingStyleSettingsUpdater settingsUpdater, Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsProviderFactory.cs (2)
11internal sealed class NamingStyleSettingsProviderFactory(Workspace workspace, IGlobalOptionService globalOptions) : IWorkspaceSettingsProviderFactory<NamingStyleSetting> 14private readonly IGlobalOptionService _globalOptions = globalOptions;
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsWorkspaceServiceFactory.cs (2)
17internal sealed class NamingStyleSettingsWorkspaceServiceFactory(IGlobalOptionService globalOptions) : IWorkspaceServiceFactory 19private readonly IGlobalOptionService _globalOptions = globalOptions;
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (2)
34public readonly IGlobalOptionService GlobalOptions; 38protected SettingsProviderBase(string fileName, TOptionsUpdater settingsUpdater, Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\Updater\NamingStyles\NamingStyleSettingsUpdater.cs (2)
20internal sealed partial class NamingStyleSettingsUpdater(Workspace workspace, IGlobalOptionService globalOptions, string editorconfigPath) : SettingsUpdaterBase<(Action<(object, object?)> onSettingChange, NamingStyleSetting option), object>(workspace, editorconfigPath) 22public readonly IGlobalOptionService GlobalOptions = globalOptions;
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (2)
23public static SourceText WithNamingStyles(this SourceText sourceText, IGlobalOptionService globalOptions) 93private static (IEnumerable<NamingRule> Common, IEnumerable<NamingRule> CSharp, IEnumerable<NamingRule> VisualBasic) GetPreferencesForAllLanguages(IGlobalOptionService globalOptions)
Extensibility\BraceMatching\BraceMatchingOptionsStorage.cs (1)
13public static BraceMatchingOptions GetBraceMatchingOptions(this IGlobalOptionService globalOptions, string language)
ExternalAccess\VSTypeScript\Api\VSTypeScriptGlobalOptions.cs (2)
17internal sealed class VSTypeScriptGlobalOptions(IGlobalOptionService globalOptions) 39internal IGlobalOptionService Service { get; } = globalOptions;
ExternalAccess\VSTypeScript\VSTypeScriptInProcLanguageClient.cs (1)
37IGlobalOptionService globalOptions,
ExternalAccess\VSTypeScript\VSTypeScriptPullDiagnosticHandlerProvider.cs (2)
22IGlobalOptionService globalOptions) 32IGlobalOptionService globalOptions)
Formatting\FormatCommandHandler.cs (2)
43IGlobalOptionService globalOptions) : 53private readonly IGlobalOptionService _globalOptions = globalOptions;
GoOrFind\AbstractGoOrFindNavigationService.cs (1)
33IGlobalOptionService globalOptions)
GoOrFind\FindReferences\FindReferencesNavigationService.cs (1)
26IGlobalOptionService globalOptions) : AbstractGoOrFindNavigationService<IFindUsagesService>(
GoOrFind\GoToBase\GoToBaseNavigationService.cs (1)
27IGlobalOptionService globalOptions)
GoOrFind\GoToImplementation\GoToImplementationNavigationService.cs (1)
27IGlobalOptionService globalOptions) : AbstractGoOrFindNavigationService<IFindUsagesService>(
InlineDiagnostics\AbstractDiagnosticsTaggerProvider.cs (1)
25protected IGlobalOptionService GlobalOptions => _taggerHost.GlobalOptions;
InlineDiagnostics\InlineDiagnosticsAdornmentManager.cs (2)
28private readonly IGlobalOptionService _globalOptions; 38IGlobalOptionService globalOptions)
InlineDiagnostics\InlineDiagnosticsAdornmentManagerProvider.cs (1)
43IGlobalOptionService globalOptions,
InlineHints\InlineHintsKeyProcessorProvider.cs (2)
28private readonly IGlobalOptionService _globalOptions; 35IGlobalOptionService globalOptions,
InlineHints\InlineHintsTaggerProvider.cs (2)
34IGlobalOptionService globalOptionService, 47public readonly IGlobalOptionService GlobalOptionService = globalOptionService;
InlineRename\InlineRenameService.cs (2)
36IGlobalOptionService globalOptions, 46internal readonly IGlobalOptionService GlobalOptions = globalOptions;
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (2)
35private readonly IGlobalOptionService _globalOptionService; 46IGlobalOptionService globalOptionService,
InlineRename\UI\InlineRenameAdornmentManager.cs (2)
22private readonly IGlobalOptionService _globalOptionService; 42IGlobalOptionService globalOptionService,
InlineRename\UI\InlineRenameAdornmentProvider.cs (2)
31private readonly IGlobalOptionService _globalOptionService; 59IGlobalOptionService globalOptionService,
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (2)
34private readonly IGlobalOptionService _globalOptionService; 144IGlobalOptionService globalOptionService,
IntelliSense\AbstractController.cs (2)
23protected readonly IGlobalOptionService GlobalOptions; 40IGlobalOptionService globalOptions,
IntelliSense\AsyncCompletion\CommitManager.cs (2)
40private readonly IGlobalOptionService _globalOptions; 63IGlobalOptionService globalOptions,
IntelliSense\AsyncCompletion\CommitManagerProvider.cs (2)
25IGlobalOptionService globalOptions, 30private readonly IGlobalOptionService _globalOptions = globalOptions;
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
77IGlobalOptionService globalOptions)
LanguageServer\AbstractInProcLanguageClient.cs (2)
31IGlobalOptionService globalOptions, 45protected readonly IGlobalOptionService GlobalOptions = globalOptions;
LanguageServer\AlwaysActivateInProcLanguageClient.cs (1)
37IGlobalOptionService globalOptions,
LanguageServer\LiveShareInProcLanguageClient.cs (1)
29IGlobalOptionService globalOptions,
LanguageServer\RazorInProcLanguageClient.cs (1)
45IGlobalOptionService globalOptions,
LineSeparators\LineSeparatorAdornmentManagerProvider.cs (1)
45IGlobalOptionService globalOptions,
Logging\FunctionIdOptions.cs (1)
46public static Func<FunctionId, bool> CreateFunctionIsEnabledPredicate(IGlobalOptionService globalOptions)
Options\EditorOptionsService.cs (2)
18internal sealed class EditorOptionsService(IGlobalOptionService globalOptions, IEditorOptionsFactoryService factory, IIndentationManagerService indentationManager) 20public readonly IGlobalOptionService GlobalOptions = globalOptions;
Options\LegacyGlobalOptionsWorkspaceService.cs (2)
19internal sealed class LegacyGlobalOptionsWorkspaceService(IGlobalOptionService globalOptions) : ILegacyGlobalOptionsWorkspaceService 21private readonly IGlobalOptionService _globalOptions = globalOptions;
Peek\DefinitionPeekableItem.cs (2)
23private readonly IGlobalOptionService _globalOptions; 30IGlobalOptionService globalOptions,
Peek\IPeekableItemFactory.cs (1)
34IGlobalOptionService globalOptions,
Peek\PeekableItemFactory.cs (2)
30private readonly IGlobalOptionService _globalOptions; 37IGlobalOptionService globalOptions,
RenameTracking\RenameTrackingTaggerProvider.cs (2)
42IGlobalOptionService globalOptions, 48private readonly IGlobalOptionService _globalOptions = globalOptions;
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (2)
31private readonly IGlobalOptionService _globalOptions; 40IGlobalOptionService globalOptions)
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (2)
49public readonly IGlobalOptionService GlobalOptions; 60IGlobalOptionService globalOptions,
Shared\Tagging\EventSources\TaggerEventSources.cs (1)
48public static ITaggerEventSource OnGlobalOptionChanged(IGlobalOptionService globalOptions, Func<IOption2, bool> predicate)
Shared\Tagging\EventSources\TaggerEventSources.OptionChangedEventSource.cs (1)
12private sealed class GlobalOptionChangedEventSource(IGlobalOptionService globalOptions, Func<IOption2, bool> predicate) : AbstractTaggerEventSource
Shared\Utilities\IWorkspaceContextService.cs (2)
31internal sealed class DefaultWorkspaceContextService(IGlobalOptionService globalOptionsService) : IWorkspaceContextService 39private readonly IGlobalOptionService _globalOptionsService = globalOptionsService;
SignatureHelp\AbstractSignatureHelpCommandHandler.cs (2)
21private readonly IGlobalOptionService _globalOptions; 26IGlobalOptionService globalOptions)
SignatureHelp\Controller.cs (2)
41IGlobalOptionService globalOptions, 58IGlobalOptionService globalOptions,
SignatureHelp\SignatureHelpBeforeCompletionCommandHandler.cs (1)
49IGlobalOptionService globalOptions)
SignatureHelp\SignatureHelpControllerProvider.cs (2)
27IGlobalOptionService globalOptions, 36private readonly IGlobalOptionService _globalOptions = globalOptions;
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (2)
31private readonly IGlobalOptionService _globalOptions; 40IGlobalOptionService globalOptions,
SplitComment\SplitCommentCommandHandler.cs (2)
36IGlobalOptionService globalOptions) : ICommandHandler<ReturnKeyCommandArgs> 41private readonly IGlobalOptionService _globalOptions = globalOptions;
StringIndentation\StringIndentationAdornmentManagerProvider.cs (1)
45IGlobalOptionService globalOptions,
Suggestions\SuggestedActionsSource.cs (2)
38public readonly IGlobalOptionService GlobalOptions; 42IGlobalOptionService globalOptions,
Suggestions\SuggestedActionsSourceProvider.cs (2)
53private readonly IGlobalOptionService _globalOptions; 70IGlobalOptionService globalOptions,
Tagging\AbstractAsynchronousTaggerProvider.cs (1)
42protected IGlobalOptionService GlobalOptions => _taggerHost.GlobalOptions;
Tagging\AsynchronousViewportTaggerProvider.cs (1)
47protected IGlobalOptionService GlobalOptions => _taggerHost.GlobalOptions;
Tagging\TaggerHost.cs (2)
20IGlobalOptionService globalOptions, 25public readonly IGlobalOptionService GlobalOptions = globalOptions;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Utilities\GlobalOptionsExtensions.cs (2)
14/// Sets options stored in <see cref="IGlobalOptionService"/> that are read by command handlers from the text editor to given <see cref="IEditorOptions"/>. 16public static void SetEditorOptions(this IGlobalOptionService globalOptions, IEditorOptions editorOptions, string language)
Workspaces\EditorTestWorkspace.cs (1)
500var globalOptions = GlobalOptions;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (27)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (12)
43private static IGlobalOptionService GetGlobalOptions(Workspace workspace) 44=> workspace.Services.SolutionServices.ExportProvider.GetExportedValue<IGlobalOptionService>(); 79var globalOptions = GetGlobalOptions(workspace); 128var globalOptions = GetGlobalOptions(workspace); 147var globalOptions = GetGlobalOptions(workspace); 237var globalOptions = GetGlobalOptions(workspace); 310var globalOptions = GetGlobalOptions(workspace); 359var globalOptions = GetGlobalOptions(workspace); 450var globalOptions = workspace.GetService<IGlobalOptionService>(); 786var globalOptions = workspace.GetService<IGlobalOptionService>();
EditAndContinue\EditAndContinueLanguageServiceTests.cs (2)
106var globalOptions = localWorkspace.GetService<IGlobalOptionService>();
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (4)
21private static IGlobalOptionService GetGlobalOptions(Workspace workspace) 22=> workspace.Services.SolutionServices.ExportProvider.GetExportedValue<IGlobalOptionService>(); 30var globalOptions = GetGlobalOptions(workspace); 54var globalOptions = GetGlobalOptions(workspace);
Options\GlobalOptionsTests.cs (3)
38[Export(typeof(IGlobalOptionService)), Shared, PartNotDiscoverable] 156globalOptions = Assert.IsType<TestGlobalOptions>(workspace.ExportProvider.GetExportedValue<IGlobalOptionService>()); 174/// Our mock <see cref="IGlobalOptionService"/> implementation returns a non-default value for each option it reads.
RenameTracking\RenameTrackingTestState.cs (1)
100Workspace.GetService<IGlobalOptionService>(),
Structure\StructureTaggerTests.cs (5)
58var globalOptions = workspace.GlobalOptions; 125var globalOptions = workspace.GlobalOptions; 170var globalOptions = workspace.GlobalOptions; 215var globalOptions = workspace.GlobalOptions; 269var globalOptions = workspace.GlobalOptions;
Microsoft.CodeAnalysis.ExternalAccess.Debugger (1)
DebuggerFindReferencesService.cs (1)
22IGlobalOptionService globalOptions,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (6)
FSharpGlobalOptions.cs (2)
17private readonly IGlobalOptionService _globalOptions; 21public FSharpGlobalOptions(IGlobalOptionService globalOptions)
Internal\Editor\FSharpEditorFormattingService.cs (2)
26private readonly IGlobalOptionService _globalOptions; 30public FSharpEditorFormattingService(IFSharpEditorFormattingService service, IGlobalOptionService globalOptions)
Internal\Editor\FSharpSmartIndentProvider.cs (2)
33private readonly IGlobalOptionService _globalOptions; 40IGlobalOptionService globalOptions)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (24)
Cohost\Handlers\Completion.cs (4)
40var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>(); 62var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>();
Cohost\Handlers\Diagnostics.cs (2)
21var globalOptionsService = solutionServices.ExportProvider.GetService<IGlobalOptionService>();
Cohost\Handlers\DocumentHighlights.cs (2)
19var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>();
Cohost\Handlers\FindAllReferences.cs (2)
22var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>();
Cohost\Handlers\FoldingRanges.cs (2)
19var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>();
Cohost\Handlers\GoToDefinition.cs (2)
20var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>();
Cohost\Handlers\GoToImplementation.cs (2)
20var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>();
Cohost\Handlers\Hover.cs (2)
23var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>();
Cohost\Handlers\OnAutoInsert.cs (2)
22var globalOptions = document.Project.Solution.Services.ExportProvider.GetService<IGlobalOptionService>();
RazorGlobalOptions.cs (2)
18private readonly IGlobalOptionService _globalOptions; 22public RazorGlobalOptions(IGlobalOptionService globalOptions)
Testing\TestRoslynOptionsHelper.cs (2)
14var globalOptions = workspace.CurrentSolution.Services.ExportProvider.GetService<IGlobalOptionService>();
Microsoft.CodeAnalysis.ExternalAccess.Xaml (4)
Internal\DescriptionService.cs (2)
25private readonly IGlobalOptionService _globalOptions; 29public DescriptionService(IGlobalOptionService globalOptions)
Internal\LocationService.cs (2)
23private readonly IGlobalOptionService _globalOptions; 27public LocationService(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions)
Microsoft.CodeAnalysis.Features (14)
Diagnostics\Options\SolutionCrawlerOptionsStorage.cs (8)
34public static BackgroundAnalysisScope GetBackgroundAnalysisScope(this IGlobalOptionService globalOptions, string language) 47public static CompilerDiagnosticsScope GetBackgroundCompilerAnalysisScope(this IGlobalOptionService globalOptions, string language) 61public static bool IsFullSolutionAnalysisEnabled(this DiagnosticAnalyzer analyzer, IGlobalOptionService globalOptions, string language) 78/// <see cref="IsFullSolutionAnalysisEnabled(IGlobalOptionService, string, out bool, out bool)"/>. 81this IGlobalOptionService globalOptions, 95/// <see cref="IsFullSolutionAnalysisEnabled(IGlobalOptionService, string)"/>. 108this IGlobalOptionService globalOptions, 124this IGlobalOptionService globalOptions,
Diagnostics\Service\DiagnosticAnalyzerService.cs (3)
26IGlobalOptionService globalOptions, 49private IGlobalOptionService GlobalOptions { get; } 55IGlobalOptionService globalOptions,
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
52public static bool IsAnalyzerEnabledForProject(DiagnosticAnalyzer analyzer, Project project, IGlobalOptionService globalOptions)
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.cs (2)
33IGlobalOptionService globalOptionService) 45internal IGlobalOptionService GlobalOptions { get; }
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (2)
52var globalOptions = localWorkspace.GetService<IGlobalOptionService>();
Microsoft.CodeAnalysis.LanguageServer (13)
FileBasedPrograms\FileBasedProgramsProjectSystem.cs (1)
38IGlobalOptionService globalOptionService,
FileBasedPrograms\FileBasedProgramsWorkspaceProviderFactory.cs (1)
34IGlobalOptionService globalOptionService,
HostWorkspace\BinLogPathProvider.cs (2)
27private readonly IGlobalOptionService _globalOptionService; 32public BinLogPathProvider(IGlobalOptionService globalOptionService, ILoggerFactory loggerFactory)
HostWorkspace\LanguageServerProjectLoader.cs (2)
35protected readonly IGlobalOptionService GlobalOptionService; 92IGlobalOptionService globalOptionService,
HostWorkspace\LanguageServerProjectSystem.cs (1)
33IGlobalOptionService globalOptionService,
LanguageServer\RazorDynamicDocumentSyncRegistration.cs (2)
17internal sealed class RazorDynamicDocumentSyncRegistration(IGlobalOptionService globalOptionService) : ILspServiceFactory 22public sealed class OnInitialized(IGlobalOptionService globalOptionService) : IOnInitialized, ILspService
Program.cs (2)
103var globalOptionService = exportProvider.GetExportedValue<Microsoft.CodeAnalysis.Options.IGlobalOptionService>();
ServerConfigurationFactory.cs (2)
15private readonly IGlobalOptionService _globalOptionService; 21public ServerConfigurationFactory(IGlobalOptionService globalOptionService)
Microsoft.CodeAnalysis.LanguageServer.Protocol (126)
Extensions\ProtocolConversions.Diagnostics.cs (2)
29public static ImmutableArray<LSP.Diagnostic> ConvertDiagnostic(DiagnosticData diagnosticData, bool supportsVisualStudioExtensions, Project project, bool isLiveSource, bool potentialDuplicate, IGlobalOptionService globalOptionService) 264private static bool SupportsFadingOption(DiagnosticData diagnosticData, IGlobalOptionService globalOptionService)
ExternalAccess\Razor\FormatNewFileHandler.cs (2)
26private readonly IGlobalOptionService _globalOptions; 30public FormatNewFileHandler(IGlobalOptionService globalOptions)
ExternalAccess\Razor\SemanticTokensRangesHandler.cs (2)
16IGlobalOptionService globalOptions, 22private readonly IGlobalOptionService _globalOptions = globalOptions;
Features\Options\AutoFormattingOptionsStorage.cs (1)
11public static AutoFormattingOptions GetAutoFormattingOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\BlockStructureOptionsStorage.cs (2)
11public static BlockStructureOptions GetBlockStructureOptions(this IGlobalOptionService globalOptions, Project project) 14public static BlockStructureOptions GetBlockStructureOptions(this IGlobalOptionService globalOptions, string language, bool isMetadataAsSource)
Features\Options\ClientFallbackAnalyzerConfigOptionsProvider.cs (2)
15/// Flows editorconfig options stored by <see cref="IGlobalOptionService"/> to <see cref="Solution.FallbackAnalyzerOptions"/> whenever a new language is added to one of the target workspaces. 23internal sealed class ClientFallbackAnalyzerConfigOptionsProvider(EditorConfigOptionsEnumerator optionsEnumerator, IGlobalOptionService globalOptions) : IFallbackAnalyzerConfigOptionsProvider
Features\Options\CompletionOptionsStorage.cs (1)
11public static CompletionOptions GetCompletionOptions(this IGlobalOptionService options, string language)
Features\Options\DocumentationCommentOptionsStorage.cs (1)
13public static DocumentationCommentOptions GetDocumentationCommentOptions(this IGlobalOptionService globalOptions, LineFormattingOptions lineFormatting, string language)
Features\Options\ExtractMethodOptionsStorage.cs (1)
14public static ExtractMethodGenerationOptions GetExtractMethodGenerationOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
Features\Options\FindUsagesOptionsStorage.cs (1)
12public static FindUsagesOptions GetFindUsagesOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\HighlightingOptionsStorage.cs (1)
11public static HighlightingOptions GetHighlightingOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\IndentationOptionsStorage.cs (1)
14public static async Task<IndentationOptions> GetIndentationOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken)
Features\Options\InlineHintsOptionsStorage.cs (3)
12public static InlineHintsOptions GetInlineHintsOptions(this IGlobalOptionService globalOptions, string language) 20public static InlineParameterHintsOptions GetInlineParameterHintsOptions(this IGlobalOptionService globalOptions, string language) 33public static InlineTypeHintsOptions GetInlineTypeHintsOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\MetadataAsSourceOptionsStorage.cs (1)
11public static MetadataAsSourceOptions GetMetadataAsSourceOptions(this IGlobalOptionService globalOptions)
Features\Options\NamingStyleOptionsStorage.cs (1)
12public static NamingStylePreferences GetNamingStylePreferences(this IGlobalOptionService globalOptions, string language)
Features\Options\QuickInfoOptionsStorage.cs (1)
11public static QuickInfoOptions GetQuickInfoOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (2)
22/// Keeps <see cref="Solution.FallbackAnalyzerOptions"/> up-to-date with global option values maintained by <see cref="IGlobalOptionService"/>. 29internal sealed class SolutionAnalyzerConfigOptionsUpdater(IGlobalOptionService globalOptions) : IEventListener
Features\Options\SymbolDescriptionOptionsStorage.cs (1)
13public static SymbolDescriptionOptions GetSymbolDescriptionOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\WorkspaceConfigurationOptionsStorage.cs (1)
11public static WorkspaceConfigurationOptions GetWorkspaceConfigurationOptions(this IGlobalOptionService globalOptions)
Features\Options\WorkspaceConfigurationService.cs (2)
16internal sealed class WorkspaceConfigurationService(IGlobalOptionService globalOptions) : IWorkspaceConfigurationService 18private readonly IGlobalOptionService _globalOptions = globalOptions;
Features\TaskList\TaskListOptionsStorage.cs (1)
15public static TaskListOptions GetTaskListOptions(this IGlobalOptionService globalOptions)
Handler\CodeActions\CodeActionFixAllResolveHandler.cs (2)
25IGlobalOptionService globalOptions) : ILspServiceDocumentRequestHandler<RoslynFixAllCodeAction, RoslynFixAllCodeAction> 29private readonly IGlobalOptionService _globalOptions = globalOptions;
Handler\CodeActions\CodeActionResolveHandler.cs (2)
35private readonly IGlobalOptionService _globalOptions; 42IGlobalOptionService globalOptions)
Handler\CodeActions\CodeActionsHandler.cs (2)
30private readonly IGlobalOptionService _globalOptions; 44IGlobalOptionService globalOptions)
Handler\CodeLens\CodeLensHandler.cs (2)
29private readonly IGlobalOptionService _globalOptionService; 33public CodeLensHandler(IGlobalOptionService globalOptionService)
Handler\CodeLens\CodeLensRefreshQueue.cs (2)
13private readonly IGlobalOptionService _globalOptionService; 20IGlobalOptionService globalOptionService)
Handler\CodeLens\CodeLensRefreshQueueFactory.cs (2)
18private readonly IGlobalOptionService _globalOptionService; 25IGlobalOptionService globalOptionService)
Handler\Completion\CompletionHandler.cs (3)
30private readonly IGlobalOptionService _globalOptions; 38IGlobalOptionService globalOptions) 73IGlobalOptionService globalOptions,
Handler\Completion\CompletionResolveHandler.cs (4)
32private readonly IGlobalOptionService _globalOptions; 39public CompletionResolveHandler(IGlobalOptionService globalOptions) 68IGlobalOptionService globalOptions, 87IGlobalOptionService globalOptions,
Handler\Completion\Extensions.cs (1)
16public static CompletionOptions GetCompletionOptionsForLsp(this IGlobalOptionService globalOptionService, string language, CompletionCapabilityHelper capabilityHelper)
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (2)
27private readonly IGlobalOptionService _globalOptionService; 50IGlobalOptionService globalOptionService,
Handler\Configuration\DidChangeConfigurationNotificationHandlerFactory.cs (2)
16private readonly IGlobalOptionService _globalOptionService; 21IGlobalOptionService globalOptionService)
Handler\Definitions\AbstractGoToDefinitionHandler.cs (3)
23private readonly IGlobalOptionService _globalOptions; 25public AbstractGoToDefinitionHandler(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions) 50internal static async Task<LSP.Location[]?> GetDefinitionsAsync(IGlobalOptionService globalOptions, IMetadataAsSourceFileService? metadataAsSourceFileService, Workspace workspace, Document document, bool forSymbolType, LinePosition linePosition, CancellationToken cancellationToken)
Handler\Definitions\GoToDefinitionHandler.cs (1)
22public GoToDefinitionHandler(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions)
Handler\Definitions\GoToTypeDefinitionHandler.cs (1)
22public GoToTypeDefinitionHandler(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions)
Handler\Diagnostics\AbstractDocumentPullDiagnosticHandler.cs (1)
19IGlobalOptionService globalOptions)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (2)
30IGlobalOptionService globalOptions) 44protected readonly IGlobalOptionService GlobalOptions = globalOptions;
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
42IGlobalOptionService globalOptions)
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (1)
24[Import] IGlobalOptionService globalOptions)
Handler\Diagnostics\DiagnosticSources\TaskListDiagnosticSource.cs (2)
19internal sealed class TaskListDiagnosticSource(Document document, IGlobalOptionService globalOptions) : AbstractDocumentDiagnosticSource<Document>(document) 30private readonly IGlobalOptionService _globalOptions = globalOptions;
Handler\Diagnostics\DiagnosticsPullCache.cs (2)
31private sealed class DiagnosticsPullCache(IGlobalOptionService globalOptions, string uniqueKey) 34private readonly IGlobalOptionService _globalOptions = globalOptions;
Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (1)
17IGlobalOptionService globalOptions)
Handler\Diagnostics\DocumentPullDiagnosticHandlerFactory.cs (1)
20IGlobalOptionService globalOptions) : ILspServiceFactory
Handler\Diagnostics\Public\PublicDocumentNonLocalDiagnosticSourceProvider.cs (1)
22[Import] IGlobalOptionService globalOptions)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticHandlerFactory.cs (1)
23IGlobalOptionService globalOptions) : ILspServiceFactory
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler.cs (1)
25IGlobalOptionService globalOptions)
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticHandlerFactory.cs (1)
21IGlobalOptionService globalOptions) : ILspServiceFactory
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticsHandler.cs (1)
28IGlobalOptionService globalOptions)
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
22IGlobalOptionService globalOptions)
Handler\Diagnostics\WorkspacePullDiagnosticHandlerFactory.cs (1)
21IGlobalOptionService globalOptions) : ILspServiceFactory
Handler\FoldingRanges\FoldingRangesHandler.cs (3)
25private readonly IGlobalOptionService _globalOptions; 32public FoldingRangesHandler(IGlobalOptionService globalOptions) 49IGlobalOptionService globalOptions,
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
27IGlobalOptionService globalOptions,
Handler\Formatting\FormatDocumentHandler.cs (2)
19internal sealed class FormatDocumentHandler(IGlobalOptionService globalOptions) : AbstractFormatDocumentHandlerBase<LSP.DocumentFormattingParams, LSP.TextEdit[]?> 21private readonly IGlobalOptionService _globalOptions = globalOptions;
Handler\Formatting\FormatDocumentOnTypeHandler.cs (2)
23private readonly IGlobalOptionService _globalOptions; 30public FormatDocumentOnTypeHandler(IGlobalOptionService globalOptions)
Handler\Formatting\FormatDocumentRangeHandler.cs (2)
19internal sealed class FormatDocumentRangeHandler(IGlobalOptionService globalOptions) : AbstractFormatDocumentHandlerBase<DocumentRangeFormattingParams, TextEdit[]?> 21private readonly IGlobalOptionService _globalOptions = globalOptions;
Handler\Highlights\DocumentHighlightHandler.cs (4)
28private readonly IGlobalOptionService _globalOptions; 32public DocumentHighlightsHandler(IHighlightingService highlightingService, IGlobalOptionService globalOptions) 53internal static async Task<DocumentHighlight[]?> GetHighlightsAsync(IGlobalOptionService globalOptions, IHighlightingService highlightingService, Document document, LinePosition linePosition, CancellationToken cancellationToken) 90private static async Task<ImmutableArray<DocumentHighlight>> GetReferenceHighlightsAsync(IGlobalOptionService globalOptions, Document document, SourceText text, int position, CancellationToken cancellationToken)
Handler\Hover\HoverHandler.cs (3)
28private readonly IGlobalOptionService _globalOptions; 32public HoverHandler(IGlobalOptionService globalOptions) 71IGlobalOptionService globalOptions,
Handler\InlayHint\InlayHintHandler.cs (2)
25private readonly IGlobalOptionService _optionsService; 29public InlayHintHandler(IGlobalOptionService optionsService)
Handler\InlayHint\InlayHintRefreshQueue.cs (2)
14private readonly IGlobalOptionService _globalOptionService; 19IGlobalOptionService globalOptionService,
Handler\InlayHint\InlayHintRefreshQueueFactory.cs (2)
18private readonly IGlobalOptionService _globalOptionService; 25IGlobalOptionService globalOptionService)
Handler\InlayHint\InlayHintResolveHandler.cs (1)
23internal sealed class InlayHintResolveHandler(IGlobalOptionService globalOptions) : ILspServiceDocumentRequestHandler<LSP.InlayHint, LSP.InlayHint>
Handler\InlineCompletions\InlineCompletionsHandler.cs (2)
85private readonly IGlobalOptionService _globalOptions; 93public InlineCompletionsHandler(XmlSnippetParser xmlSnippetParser, IGlobalOptionService globalOptions)
Handler\OnAutoInsert\OnAutoInsertHandler.cs (3)
34IGlobalOptionService globalOptions) : ILspServiceDocumentRequestHandler<LSP.VSInternalDocumentOnAutoInsertParams, LSP.VSInternalDocumentOnAutoInsertResponseItem?> 37private readonly IGlobalOptionService _globalOptions = globalOptions; 64IGlobalOptionService globalOptions,
Handler\References\FindAllReferencesHandler.cs (3)
29private readonly IGlobalOptionService _globalOptions; 36IGlobalOptionService globalOptions) 74IGlobalOptionService globalOptions,
Handler\References\FindImplementationsHandler.cs (2)
23private readonly IGlobalOptionService _globalOptions; 27public FindImplementationsHandler(IGlobalOptionService globalOptions)
Handler\References\FindUsagesLSPContext.cs (2)
39private readonly IGlobalOptionService _globalOptions; 83IGlobalOptionService globalOptions,
Handler\SemanticTokens\SemanticTokensFullHandler.cs (2)
15IGlobalOptionService globalOptions, 19private readonly IGlobalOptionService _globalOptions = globalOptions;
Handler\SemanticTokens\SemanticTokensFullHandlerFactory.cs (2)
15internal sealed class SemanticTokensFullHandlerFactory(IGlobalOptionService globalOptions) : ILspServiceFactory 17private readonly IGlobalOptionService _globalOptions = globalOptions;
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
29IGlobalOptionService globalOptions,
Handler\SemanticTokens\SemanticTokensRangeHandler.cs (2)
15IGlobalOptionService globalOptions, 18private readonly IGlobalOptionService _globalOptions = globalOptions;
Handler\SemanticTokens\SemanticTokensRangeHandlerFactory.cs (2)
15private readonly IGlobalOptionService _globalOptions; 20IGlobalOptionService globalOptions)
Handler\SemanticTokens\SemanticTokensRangesHandlerFactory.cs (2)
16private readonly IGlobalOptionService _globalOptions; 21IGlobalOptionService globalOptions)
Handler\Tasks\DocumentTaskDiagnosticSourceProvider.cs (1)
19internal sealed class DocumentTaskDiagnosticSourceProvider([Import] IGlobalOptionService globalOptions) : IDiagnosticSourceProvider
Handler\Tasks\WorkspaceTaskDiagnosticSourceProvider.cs (1)
21internal sealed class WorkspaceTaskDiagnosticSourceProvider([Import] IGlobalOptionService globalOptions) : IDiagnosticSourceProvider
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (22)
Completion\CompletionFeaturesTests.cs (2)
1097var globalOptions = testLspServer.TestWorkspace.GetService<IGlobalOptionService>();
Completion\CompletionTests.cs (2)
1408var globalOptions = testLspServer.TestWorkspace.GetService<IGlobalOptionService>();
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (2)
162var globalOptionService = workspace.GetService<IGlobalOptionService>();
Diagnostics\AbstractPullDiagnosticTestsBase.cs (2)
67var optionService = testLspServer.TestWorkspace.GetService<IGlobalOptionService>();
Diagnostics\PullDiagnosticTests.cs (4)
2213var options = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 2248var options = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<IGlobalOptionService>();
Options\LspOptionsTests.cs (4)
29var globalOptions = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 42var globalOptions = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<IGlobalOptionService>();
Options\SolutionAnalyzerConfigOptionsUpdaterTests.cs (6)
41var globalOptions = workspace.GetService<IGlobalOptionService>(); 111var globalOptions = workspace.GetService<IGlobalOptionService>(); 272var globalOptions = workspace.GetService<IGlobalOptionService>();
Microsoft.CodeAnalysis.Workspaces (4)
Options\GlobalOptionService.cs (1)
18[Export(typeof(IGlobalOptionService)), Shared]
Options\ILegacyWorkspaceOptionService.cs (1)
22IGlobalOptionService GlobalOptions { get; }
Options\LegacyWorkspaceOptionService.cs (2)
19internal sealed class LegacyGlobalOptionService(IGlobalOptionService globalOptionService) : ILegacyGlobalOptionService 29public IGlobalOptionService GlobalOptions { get; } = globalOptionService;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
OptionsCollection.cs (1)
88public void SetGlobalOptions(IGlobalOptionService globalOptions)
Workspaces\TestWorkspace`1.cs (2)
50internal IGlobalOptionService GlobalOptions { get; } 89this.GlobalOptions = GetService<IGlobalOptionService>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (3)
22private static IGlobalOptionService GetGlobalOptionService(HostWorkspaceServices services) 23=> services.SolutionServices.ExportProvider.GetExportedValue<IGlobalOptionService>(); 167var globalOptions = GetGlobalOptionService(workspace.Services);
Microsoft.VisualStudio.LanguageServices (75)
CodeLens\RemoteCodeLensReferencesService.cs (2)
26private readonly IGlobalOptionService _globalOptions; 30public RemoteCodeLensReferencesService(IGlobalOptionService globalOptions)
ColorSchemes\ColorSchemeApplier.cs (1)
43IGlobalOptionService globalOptions,
ColorSchemes\ColorSchemeApplier.Settings.cs (2)
29private readonly IGlobalOptionService _globalOptions; 34IGlobalOptionService globalOptions)
DocumentOutline\DocumentOutlineView.xaml.cs (2)
38private readonly IGlobalOptionService _globalOptionService; 49IGlobalOptionService globalOptionService,
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsProvider.cs (1)
18public CommonCodeStyleSettingsProvider(string filePath, OptionUpdater settingsUpdater, Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsProviderFactory.cs (2)
14private readonly IGlobalOptionService _globalOptions; 16public CommonCodeStyleSettingsProviderFactory(Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsWorkspaceServiceFactory.cs (2)
17private readonly IGlobalOptionService _globalOptions; 21public CommonCodeStyleSettingsWorkspaceServiceFactory(IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\Whitespace\CommonWhitespaceSettingsProvider.cs (1)
18public CommonWhitespaceSettingsProvider(string fileName, OptionUpdater settingsUpdater, Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\Whitespace\CommonWhitespaceSettingsProviderFactory.cs (2)
14private readonly IGlobalOptionService _globalOptions; 16public CommonWhitespaceSettingsProviderFactory(Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\Whitespace\CommonWhitespaceSettingsWorkspaceServiceFactory.cs (2)
17private readonly IGlobalOptionService _globalOptions; 21public CommonWhitespaceSettingsWorkspaceServiceFactory(IGlobalOptionService globalOptions)
ExternalAccess\Pythia\PythiaGlobalOptions.cs (2)
15private readonly IGlobalOptionService _globalOptions; 19public PythiaGlobalOptions(IGlobalOptionService globalOptions)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (2)
63private readonly IGlobalOptionService _globalOptions; 125IGlobalOptionService globalOptions,
FindReferences\Contexts\WithoutReferencesFindUsagesContext.cs (1)
30IGlobalOptionService globalOptions,
FindReferences\Contexts\WithReferencesFindUsagesContext.cs (1)
35IGlobalOptionService globalOptions,
FindReferences\StreamingFindUsagesPresenter.cs (4)
52private readonly IGlobalOptionService _globalOptions; 68IGlobalOptionService globalOptions, 95exportProvider.GetExportedValue<IGlobalOptionService>(), 109IGlobalOptionService optionService,
Implementation\AbstractVsTextViewFilter.cs (3)
145var globalOptions = ComponentModel.GetService<IGlobalOptionService>(); 162IGlobalOptionService globalOptions,
Implementation\VisualStudioWorkspaceContextService.cs (2)
22private readonly IGlobalOptionService _globalOptions; 26public VisualStudioWorkspaceContextService(IGlobalOptionService globalOptions)
InheritanceMargin\InheritanceGlyphFactory.cs (2)
34private readonly IGlobalOptionService _globalOptions; 44IGlobalOptionService globalOptions,
InheritanceMargin\InheritanceGlyphFactoryProvider.cs (2)
36private readonly IGlobalOptionService _globalOptions; 47IGlobalOptionService globalOptions,
InheritanceMargin\InheritanceMarginViewMargin.cs (2)
33private readonly IGlobalOptionService _globalOptions; 55IGlobalOptionService globalOptions,
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (2)
41private readonly IGlobalOptionService _globalOptions; 54IGlobalOptionService globalOptions,
KeybindingReset\KeybindingResetDetector.cs (2)
64private readonly IGlobalOptionService _globalOptions; 92IGlobalOptionService globalOptions,
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (2)
37protected IGlobalOptionService GlobalOptions { get; } 44IGlobalOptionService globalOptions,
LanguageService\AbstractLanguageService`2.cs (2)
165var globalOptions = this.Package.ComponentModel.GetService<IGlobalOptionService>();
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (2)
39private readonly IGlobalOptionService _globalOptions; 51_globalOptions = languageService.Package.ComponentModel.GetService<IGlobalOptionService>();
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
495var globalOptions = ComponentModel.GetService<IGlobalOptionService>();
Packaging\PackageInstallerServiceFactory.cs (1)
102IGlobalOptionService globalOptions,
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
69private readonly IGlobalOptionService _globalOptions; 126_globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>();
Remote\VisualStudioRemoteHostClientProvider.cs (4)
40private readonly IGlobalOptionService _globalOptions; 53IGlobalOptionService globalOptions, 96private readonly IGlobalOptionService _globalOptions; 107IGlobalOptionService globalOptions,
RoslynPackage.cs (1)
107_ = ComponentModel.GetService<IGlobalOptionService>();
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (2)
23private readonly IGlobalOptionService _globalOptions; 31_globalOptions = package.ComponentModel.GetService<IGlobalOptionService>();
SymbolSearch\AbstractDelayStartedService.cs (2)
28private readonly IGlobalOptionService _globalOptions; 55IGlobalOptionService globalOptions,
SymbolSearch\VisualStudioSymbolSearchService.cs (1)
45IGlobalOptionService globalOptions,
Telemetry\FileLogger.cs (1)
37public FileLogger(IGlobalOptionService optionService, IThreadingContext threadingContext)
Telemetry\VisualStudioWorkspaceTelemetryService.cs (2)
28IGlobalOptionService globalOptions) : AbstractWorkspaceTelemetryService 32private readonly IGlobalOptionService _globalOptions = globalOptions;
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
38private readonly IGlobalOptionService _globalOptions; 52IGlobalOptionService globalOptions)
ValueTracking\ValueTrackedTreeItemViewModel.cs (3)
31private readonly IGlobalOptionService _globalOptions; 52IGlobalOptionService globalOptions, 99IGlobalOptionService globalOptions,
ValueTracking\ValueTrackingCommandHandler.cs (2)
44private readonly IGlobalOptionService _globalOptions; 58IGlobalOptionService globalOptions,
Workspace\VisualStudioSymbolNavigationService.cs (2)
34IGlobalOptionService globalOptions, 41private readonly IGlobalOptionService _globalOptions = globalOptions;
Microsoft.VisualStudio.LanguageServices.CSharp (13)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsLanguageServiceFactory.cs (2)
19private readonly IGlobalOptionService _globalOptions; 23public CSharpCodeStyleSettingsLanguageServiceFactory(IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
22public CSharpCodeStyleSettingsProvider(string fileName, OptionUpdater settingsUpdater, Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProviderFactory.cs (2)
16private readonly IGlobalOptionService _globalOptions; 18public CSharpCodeStyleSettingsProviderFactory(Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsLanguageServiceFactory.cs (2)
19private readonly IGlobalOptionService _globalOptions; 23public CSharpWhitespaceSettingsLanguageServiceFactory(IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProvider.cs (1)
22public CSharpWhitespaceSettingsProvider(string filePath, OptionUpdater updaterService, Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProviderFactory.cs (2)
16private readonly IGlobalOptionService _globalOptions; 18public CSharpWhitespaceSettingsProviderFactory(Workspace workspace, IGlobalOptionService globalOptions)
LanguageService\CSharpCreateServicesOnTextViewConnection.cs (1)
33IGlobalOptionService globalOptions,
SemanticSearch\SemanticSearchPresenterController.cs (1)
25IGlobalOptionService globalOptions) : ISemanticSearchPresenterController
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
56IGlobalOptionService globalOptions,
Microsoft.VisualStudio.LanguageServices.Xaml (12)
Features\Peek\IXamlPeekableItemFactory.cs (1)
32IGlobalOptionService globalOptions,
Implementation\LanguageClient\XamlInProcLanguageClient.cs (1)
35IGlobalOptionService globalOptions,
Implementation\LanguageClient\XamlInProcLanguageClientDisableUX.cs (1)
37IGlobalOptionService globalOptions,
Implementation\LanguageServer\Handler\CodeActions\CodeActionsHandlerProvider.cs (2)
21IGlobalOptionService globalOptions) : CodeActionsHandler(codeFixService, codeRefactoringService, globalOptions); 29IGlobalOptionService globalOptions) : CodeActionResolveHandler(codeFixService, codeRefactoringService, globalOptions);
Implementation\LanguageServer\Handler\Completion\CompletionResolveHandler.cs (2)
32private readonly IGlobalOptionService _globalOptions; 39public CompletionResolveHandler(IGlobalOptionService globalOptions)
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (3)
35private readonly IGlobalOptionService _globalOptions; 39public GoToDefinitionHandler(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions) 153private static async Task<LSP.Location[]> GetSymbolDefinitionLocationsAsync(XamlSymbolDefinition symbolDefinition, Document document, Solution solution, IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions, CancellationToken cancellationToken)
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (2)
29private readonly IGlobalOptionService _globalOptions; 33public HoverHandler(IGlobalOptionService globalOptions)
Roslyn.VisualStudio.DiagnosticsWindow (8)
OptionPages\ForceLowMemoryMode.cs (2)
18private readonly IGlobalOptionService _globalOptions; 21public ForceLowMemoryMode(IGlobalOptionService globalOptions)
OptionPages\PerformanceLoggersPage.cs (4)
28private IGlobalOptionService _globalOptions; 38_globalOptions = componentModel.GetService<IGlobalOptionService>(); 55public static void SetLoggers(IGlobalOptionService globalOptions, IThreadingContext threadingContext, SolutionServices workspaceServices) 78private static IEnumerable<string> GetLoggerTypes(IGlobalOptionService globalOptions)
VisualStudioDiagnosticsWindowPackage.cs (2)
79var globalOptions = componentModel.GetService<IGlobalOptionService>();
Roslyn.VisualStudio.Next.UnitTests (35)
Remote\RemoteHostClientServiceFactoryTests.cs (2)
37var globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>();
Services\ServiceHubServicesTests.cs (33)
698private sealed class TestWorkspaceConfigurationService(IGlobalOptionService globalOptionService) : IWorkspaceConfigurationService 709var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 793var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 848var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 901var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 952var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 993var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1036var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1088var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1141var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1194var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1239var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1284var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1327var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1372var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1413var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1535var globalOptionService = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>();