3 implementations of IGlobalOptionService
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Options\GlobalOptionsTests.cs (1)
45internal class TestGlobalOptions : IGlobalOptionService
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorGlobalOptions.cs (1)
52private sealed class TestGlobalOptionService : IGlobalOptionService
Microsoft.CodeAnalysis.Workspaces (1)
Options\GlobalOptionService.cs (1)
20internal sealed class GlobalOptionService : IGlobalOptionService
759 references to IGlobalOptionService
AnalyzerRunner (2)
IncrementalAnalyzerRunner.cs (2)
45var globalOptions = exportProvider.GetExports<IGlobalOptionService>().Single().Value;
IdeBenchmarks (2)
Lsp\LspCompletionBenchmarks.cs (2)
23private IGlobalOptionService? _globalOptionService; 96_globalOptionService = _testServer.TestWorkspace.GetService<IGlobalOptionService>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures (20)
AddImports\CSharpAddImportsPasteCommandHandler.cs (1)
33public CSharpAddImportsPasteCommandHandler(IThreadingContext threadingContext, IGlobalOptionService globalOptions, IAsynchronousOperationListenerProvider listnerProvider)
ChangeSignature\CSharpChangeSignatureCommandHandler.cs (1)
23public CSharpChangeSignatureCommandHandler(IThreadingContext threadingContext, IGlobalOptionService globalOptions)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
43private readonly IGlobalOptionService _globalOptions; 52IGlobalOptionService globalOptions)
ConvertNamespace\ConvertNamespaceCommandHandler.cs (2)
51private readonly IGlobalOptionService _globalOptions; 59IGlobalOptionService globalOptions,
EncapsulateField\EncapsulateFieldCommandHandler.cs (1)
29IGlobalOptionService globalOptions,
EventHookup\EventHookupCommandHandler.cs (2)
46private readonly IGlobalOptionService _globalOptions; 59IGlobalOptionService globalOptions,
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
156IGlobalOptionService globalOptions,
EventHookup\EventHookupSessionManager.cs (2)
29private readonly IGlobalOptionService _globalOptions; 43IGlobalOptionService globalOptions)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (2)
50private readonly IGlobalOptionService _globalOptions; 105IGlobalOptionService globalOptions,
ExtractInterface\ExtractInterfaceCommandHandler.cs (1)
24public ExtractInterfaceCommandHandler(IThreadingContext threadingContext, IGlobalOptionService globalOptions)
InlineRename\CSharpEditorInlineRenameService.cs (1)
21IGlobalOptionService globalOptions)
RawStringLiteral\RawStringLiteralCommandHandler.cs (2)
24private readonly IGlobalOptionService _globalOptions; 33IGlobalOptionService globalOptions,
StringCopyPaste\StringCopyPasteCommandHandler.cs (2)
64private readonly IGlobalOptionService _globalOptions; 73IGlobalOptionService globalOptions,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (17)
BlockCommentEditing\CloseBlockCommentTests.cs (2)
287var globalOptions = workspace.GetService<IGlobalOptionService>();
Classification\SemanticClassifierTests.cs (2)
2494var globalOptions = workspace.ExportProvider.GetExportedValue<IGlobalOptionService>();
Classification\SyntacticTaggerTests.cs (2)
49workspace.GetService<IGlobalOptionService>(), 107workspace.GetService<IGlobalOptionService>(),
CompleteStatement\CSharpCompleteStatementCommandHandlerTests.cs (2)
4251var globalOptions = workspace.GetService<IGlobalOptionService>();
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (4)
48private static IGlobalOptionService GetGlobalOptions(Workspace workspace) 49=> workspace.Services.SolutionServices.ExportProvider.GetExportedValue<IGlobalOptionService>(); 344var globalOptions = GetGlobalOptions(workspace); 380var globalOptions = GetGlobalOptions(workspace);
EventHookup\EventHookupTestState.cs (1)
39Workspace.GetService<IGlobalOptionService>(),
Formatting\CodeCleanupTests.cs (1)
818var globalOptions = workspace.GlobalOptions;
Formatting\RazorLineFormattingOptionsTests.cs (2)
43var globalOptions = ((IMefHostExportProvider)hostServices).GetExportedValue<IGlobalOptionService>();
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (1)
43workspace.GetService<IGlobalOptionService>(),
Microsoft.CodeAnalysis.EditorFeatures (144)
AddImports\AbstractAddImportsPasteCommandHandler.cs (2)
42private readonly IGlobalOptionService _globalOptions; 47IGlobalOptionService globalOptions,
BraceMatching\BraceHighlightingViewTaggerProvider.cs (1)
45IGlobalOptionService globalOptions,
BracePairs\BracePairsTaggerProvider.cs (1)
42IGlobalOptionService globalOptionService,
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (2)
27private readonly IGlobalOptionService _globalOptions; 29protected AbstractChangeSignatureCommandHandler(IThreadingContext threadingContext, IGlobalOptionService globalOptions)
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.cs (2)
35private readonly IGlobalOptionService _globalOptions; 43IGlobalOptionService globalOptions)
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.Tagger.cs (2)
34private readonly IGlobalOptionService _globalOptions; 46IGlobalOptionService globalOptions)
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (2)
35private readonly IGlobalOptionService _globalOptions; 46IGlobalOptionService globalOptions,
Classification\Semantic\EmbeddedLanguageClassificationViewTaggerProvider.cs (1)
30IGlobalOptionService globalOptions,
Classification\Semantic\SemanticClassificationViewTaggerProvider.cs (1)
32IGlobalOptionService globalOptions,
Classification\Syntactic\SyntacticClassificationTaggerProvider.cs (2)
31private readonly IGlobalOptionService _globalOptions; 40IGlobalOptionService globalOptions,
CodeDefinitionWindow\DefinitionContextTracker.cs (2)
49private readonly IGlobalOptionService _globalOptions; 59IGlobalOptionService globalOptions,
Diagnostics\AbstractDiagnosticsAdornmentTaggerProvider.cs (1)
23IGlobalOptionService globalOptions,
Diagnostics\AbstractPushOrPullDiagnosticsTaggerProvider.cs (2)
35protected readonly IGlobalOptionService GlobalOptions; 41IGlobalOptionService globalOptions,
Diagnostics\AbstractPushOrPullDiagnosticsTaggerProvider.PullDiagnosticsTaggerProvider.cs (1)
37IGlobalOptionService globalOptions,
Diagnostics\AbstractPushOrPullDiagnosticsTaggerProvider.PushDiagnosticsTaggerProvider.cs (1)
50IGlobalOptionService globalOptions,
Diagnostics\AbstractPushOrPullDiagnosticsTaggerProvider.SingleDiagnosticKindPullTaggerProvider.cs (1)
53IGlobalOptionService globalOptions,
Diagnostics\DiagnosticsSquiggleTaggerProvider.cs (1)
39IGlobalOptionService globalOptions,
Diagnostics\DiagnosticsSuggestionTaggerProvider.cs (1)
39IGlobalOptionService globalOptions,
EditAndContinue\ActiveStatementTaggerProvider.cs (1)
47IGlobalOptionService globalOptions,
Editor\EditorLayerExtensionManager.cs (4)
32private readonly IGlobalOptionService _optionService; 37IGlobalOptionService optionService, 54private readonly IGlobalOptionService _globalOptions; 59IGlobalOptionService globalOptions,
EditorConfigSettings\Data\TieredAnalyzerConfigOptions.cs (2)
13public readonly IGlobalOptionService GlobalOptions; 18public TieredAnalyzerConfigOptions(AnalyzerConfigOptions editorConfigOptions, IGlobalOptionService globalOptions, string language, string editorConfigFileName)
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsProvider.cs (1)
21public NamingStyleSettingsProvider(string fileName, NamingStyleSettingsUpdater settingsUpdater, Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsProviderFactory.cs (2)
14private readonly IGlobalOptionService _globalOptions; 16public NamingStyleSettingsProviderFactory(Workspace workspace, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsWorkspaceServiceFactory.cs (2)
17private readonly IGlobalOptionService _globalOptions; 21public NamingStyleSettingsWorkspaceServiceFactory(IGlobalOptionService 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)
23public readonly IGlobalOptionService GlobalOptions; 25public NamingStyleSettingsUpdater(Workspace workspace, IGlobalOptionService globalOptions, string editorconfigPath)
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (2)
23public static SourceText WithNamingStyles(this SourceText sourceText, IGlobalOptionService globalOptions) 81private static (IEnumerable<NamingRule> Common, IEnumerable<NamingRule> CSharp, IEnumerable<NamingRule> VisualBasic) GetPreferencesForAllLanguages(IGlobalOptionService globalOptions)
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (2)
30private readonly IGlobalOptionService _globalOptions; 38IGlobalOptionService globalOptions,
Extensibility\BraceMatching\BraceMatchingOptionsStorage.cs (1)
13public static BraceMatchingOptions GetBraceMatchingOptions(this IGlobalOptionService globalOptions, string language)
ExternalAccess\IntelliCode\IntentProcessor.cs (2)
31private readonly IGlobalOptionService _globalOptions; 37IGlobalOptionService globalOptions)
ExternalAccess\UnitTestGenerator\Api\UnitTestGeneratorAddMissingImportsFeatureServiceAccessor.cs (2)
24private readonly IGlobalOptionService _globalOptions; 28public UnitTestGeneratorAddMissingImportsFeatureServiceAccessor(IGlobalOptionService globalOptions)
ExternalAccess\UnitTestGenerator\Api\UnitTestGeneratorOrganizeImportsAccessor.cs (2)
21private readonly IGlobalOptionService _globalOptions; 25public UnitTestGeneratorOrganizeImportsAccessor(IGlobalOptionService globalOptions)
ExternalAccess\UnitTesting\Api\UnitTestingGlobalOptions.cs (2)
16private readonly IGlobalOptionService _globalOptions; 20public UnitTestingGlobalOptions(IGlobalOptionService globalOptions)
ExternalAccess\VSTypeScript\Api\VSTypeScriptGlobalOptions.cs (3)
17private readonly IGlobalOptionService _globalOptions; 21public VSTypeScriptGlobalOptions(IGlobalOptionService globalOptions) 47internal IGlobalOptionService Service => _globalOptions;
ExternalAccess\VSTypeScript\VSTypeScriptDiagnosticService.cs (2)
21private readonly IGlobalOptionService _globalOptions; 25public VSTypeScriptDiagnosticService(IDiagnosticService service, IGlobalOptionService globalOptions)
ExternalAccess\VSTypeScript\VSTypeScriptInProcLanguageClient.cs (1)
43IGlobalOptionService globalOptions,
ExternalAccess\VSTypeScript\VSTypeScriptPullDiagnosticHandlerProvider.cs (2)
27IGlobalOptionService globalOptions) : base(analyzerService, editAndContinueDiagnosticUpdateSource, globalOptions) 40IGlobalOptionService globalOptions) : base(analyzerService, editAndContinueDiagnosticUpdateSource, globalOptions)
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (2)
25private readonly IGlobalOptionService _globalOptions; 27protected AbstractExtractInterfaceCommandHandler(IThreadingContext threadingContext, IGlobalOptionService globalOptions)
ExtractMethod\ExtractMethodCommandHandler.cs (2)
49private readonly IGlobalOptionService _globalOptions; 58IGlobalOptionService globalOptions,
FindReferences\FindReferencesCommandHandler.cs (2)
35private readonly IGlobalOptionService _globalOptions; 44IGlobalOptionService globalOptions,
FindUsages\BufferedFindUsagesContext.cs (2)
32private readonly IGlobalOptionService _globalOptions; 51public BufferedFindUsagesContext(IGlobalOptionService globalOptions)
Formatting\FormatCommandHandler.cs (2)
48private readonly IGlobalOptionService _globalOptions; 57IGlobalOptionService globalOptions)
GoToBase\GoToBaseCommandHandler.cs (1)
37IGlobalOptionService globalOptions)
GoToDefinition\AbstractGoToCommandHandler`2.cs (2)
38private readonly IGlobalOptionService _globalOptions; 71IGlobalOptionService globalOptions)
GoToDefinition\GoToDefinitionCommandHandler.cs (2)
34private readonly IGlobalOptionService _globalOptionService; 42IGlobalOptionService globalOptionService,
GoToImplementation\GoToImplementationCommandHandler.cs (1)
37IGlobalOptionService globalOptions)
InlineHints\InlineHintsDataTaggerProvider.cs (1)
55IGlobalOptionService globalOptions,
InlineHints\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)
InlineRename\AbstractEditorInlineRenameService.cs (2)
16private readonly IGlobalOptionService _globalOptions; 18protected AbstractEditorInlineRenameService(IEnumerable<IRefactorNotifyService> refactorNotifyServices, IGlobalOptionService globalOptions)
InlineRename\AbstractInlineRenameUndoManager.cs (2)
33private readonly IGlobalOptionService _globalOptionService; 43public AbstractInlineRenameUndoManager(InlineRenameService inlineRenameService, IGlobalOptionService globalOptionService)
InlineRename\InlineRenameService.cs (2)
40internal readonly IGlobalOptionService GlobalOptions; 53IGlobalOptionService globalOptions,
InlineRename\UndoManagerServiceFactory.cs (3)
25private readonly IGlobalOptionService _globalOptionService; 29public UndoManagerServiceFactory(InlineRenameService inlineRenameService, IGlobalOptionService globalOptionService) 47public InlineRenameUndoManager(InlineRenameService inlineRenameService, IGlobalOptionService globalOptionService) : base(inlineRenameService, globalOptionService)
IntelliSense\AbstractController.cs (2)
23protected readonly IGlobalOptionService GlobalOptions; 40IGlobalOptionService globalOptions,
IntelliSense\AsyncCompletion\CommitManager.cs (2)
39private readonly IGlobalOptionService _globalOptions; 62IGlobalOptionService globalOptions,
IntelliSense\AsyncCompletion\CommitManagerProvider.cs (2)
24private readonly IGlobalOptionService _globalOptions; 32IGlobalOptionService globalOptions,
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
75IGlobalOptionService globalOptions)
IntelliSense\AsyncCompletion\ItemManager.cs (2)
24private readonly IGlobalOptionService _globalOptions; 26internal ItemManager(RecentItemsManager recentItemsManager, IGlobalOptionService globalOptions)
IntelliSense\AsyncCompletion\ItemManagerProvider.cs (1)
25public ItemManagerProvider(RecentItemsManager recentItemsManager, IGlobalOptionService globalOptions)
Intents\DeleteParameterIntentProvider.cs (2)
25private readonly IGlobalOptionService _globalOptionService; 29public DeleteParameterIntentProvider(IGlobalOptionService globalOptionService)
Interactive\InteractiveWorkspace.cs (1)
19internal InteractiveWorkspace(HostServices hostServices, IGlobalOptionService globalOptions)
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
54IGlobalOptionService globalOptions,
LanguageServer\AbstractInProcLanguageClient.cs (2)
36protected readonly IGlobalOptionService GlobalOptions; 105IGlobalOptionService globalOptions,
LanguageServer\AlwaysActivateInProcLanguageClient.cs (1)
45IGlobalOptionService globalOptions,
LanguageServer\EditorHoverCreationService.cs (2)
23private readonly IGlobalOptionService _globalOptions; 27public EditorLspHoverResultCreationService(IGlobalOptionService globalOptions)
LanguageServer\LiveShareInProcLanguageClient.cs (1)
36IGlobalOptionService globalOptions,
LanguageServer\RazorInProcLanguageClient.cs (1)
52IGlobalOptionService globalOptions,
Logging\FunctionIdOptions.cs (1)
48public static Func<FunctionId, bool> CreateFunctionIsEnabledPredicate(IGlobalOptionService globalOptions)
Options\EditorOptionsService.cs (2)
20public readonly IGlobalOptionService GlobalOptions; 26public EditorOptionsService(IGlobalOptionService globalOptions, IEditorOptionsFactoryService factory, IIndentationManagerService indentationManager)
Options\LegacyGlobalOptionsWorkspaceService.cs (2)
20private readonly IGlobalOptionService _globalOptions; 39public LegacyGlobalOptionsWorkspaceService(IGlobalOptionService globalOptions)
Options\TextBufferOptionProviders.cs (1)
49private static SyntaxFormattingOptions GetSyntaxFormattingOptionsImpl(ITextBuffer textBuffer, IEditorOptions editorOptions, IIndentationManagerService indentationManager, IGlobalOptionService globalOptions, LanguageServices languageServices, bool explicitFormat)
Organizing\OrganizeDocumentCommandHandler.cs (2)
41private readonly IGlobalOptionService _globalOptions; 45public OrganizeDocumentCommandHandler(IThreadingContext threadingContext, IGlobalOptionService globalOptions)
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (2)
43private readonly IGlobalOptionService _globalOptions; 56IGlobalOptionService globalOptions,
RenameTracking\RenameTrackingTaggerProvider.cs (2)
47private readonly IGlobalOptionService _globalOptions; 55IGlobalOptionService globalOptions,
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (2)
30private readonly IGlobalOptionService _globalOptions; 39IGlobalOptionService globalOptions)
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (2)
51public readonly IGlobalOptionService GlobalOptions; 63IGlobalOptionService globalOptions,
Shared\Tagging\EventSources\TaggerEventSources.cs (1)
50public static ITaggerEventSource OnGlobalOptionChanged(IGlobalOptionService globalOptions, IOption2 globalOption)
Shared\Tagging\EventSources\TaggerEventSources.OptionChangedEventSource.cs (2)
15private readonly IGlobalOptionService _globalOptions; 17public GlobalOptionChangedEventSource(IGlobalOptionService globalOptions, IOption2 globalOption)
Shared\Utilities\IWorkspaceContextService.cs (2)
37private readonly IGlobalOptionService _globalOptionsService; 41public DefaultWorkspaceContextService(IGlobalOptionService globalOptionsService)
SolutionCrawler\HostSolutionCrawlerWorkspaceEventListener.cs (2)
16private readonly IGlobalOptionService _globalOptions; 20public HostSolutionCrawlerWorkspaceEventListener(IGlobalOptionService globalOptions)
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (2)
25private readonly IGlobalOptionService _globalOptions; 32IGlobalOptionService globalOptions,
SplitComment\SplitCommentCommandHandler.cs (2)
39private readonly IGlobalOptionService _globalOptions; 48IGlobalOptionService globalOptions)
Tagging\AbstractAsynchronousTaggerProvider.cs (2)
40protected readonly IGlobalOptionService GlobalOptions; 120IGlobalOptionService globalOptions,
Tagging\AsynchronousTaggerProvider.cs (1)
20IGlobalOptionService globalOptions,
Tagging\AsynchronousViewTaggerProvider.cs (1)
21IGlobalOptionService globalOptions,
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (23)
AbstractSignatureHelpCommandHandler.cs (2)
22private readonly IGlobalOptionService _globalOptions; 27IGlobalOptionService globalOptions)
AsyncSuggestedActionsSource.cs (1)
38IGlobalOptionService globalOptions,
CommandHandlers\GoToMatchingBraceCommandHandler.cs (2)
28private readonly IGlobalOptionService _globalOptions; 32public GoToMatchingBraceCommandHandler(IBraceMatchingService braceMatchingService, IGlobalOptionService globalOptions)
Controller.cs (2)
41IGlobalOptionService globalOptions, 58IGlobalOptionService globalOptions,
NavigationCommandHandlers\FindBaseSymbolsCommandHandler.cs (2)
32private readonly IGlobalOptionService _globalOptions; 41IGlobalOptionService globalOptions)
NavigationCommandHandlers\FindExtensionMethodsCommandHandler.cs (2)
36private readonly IGlobalOptionService _globalOptions; 45IGlobalOptionService globalOptions)
NavigationCommandHandlers\FindImplementingMembersCommandHandler.cs (2)
34private readonly IGlobalOptionService _globalOptions; 43IGlobalOptionService globalOptions)
SignatureHelpAfterCompletionCommandHandler.cs (1)
57IGlobalOptionService globalOptions)
SignatureHelpBeforeCompletionCommandHandler.cs (1)
56IGlobalOptionService globalOptions)
SignatureHelpControllerProvider.cs (2)
29private readonly IGlobalOptionService _globalOptions; 38IGlobalOptionService globalOptions,
SuggestedActionsSource.cs (3)
45public readonly IGlobalOptionService GlobalOptions; 49IGlobalOptionService globalOptions, 303IGlobalOptionService globalOptions,
SuggestedActionsSourceProvider.cs (2)
57private readonly IGlobalOptionService _globalOptions; 74IGlobalOptionService globalOptions,
SyncSuggestedActionsSource.cs (1)
19IGlobalOptionService globalOptions,
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
SplitComments\AbstractSplitCommentCommandHandlerTests.cs (1)
55var globalOptions = workspace.GlobalOptions;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (12)
BraceHighlighting\AbstractBraceHighlightingTests.cs (1)
47workspace.GetService<IGlobalOptionService>(),
Diagnostics\MockDiagnosticAnalyzerService.cs (2)
29public MockDiagnosticAnalyzerService(IGlobalOptionService globalOptions) 50public IGlobalOptionService GlobalOptions { get; }
Diagnostics\TestDiagnosticAnalyzerDriver.cs (2)
32internal readonly IGlobalOptionService GlobalOptions; 42GlobalOptions = mefServices.GetExportedValue<IGlobalOptionService>();
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
372options?.OptionUpdater?.Invoke(workspace.GetService<IGlobalOptionService>());
LanguageServer\AbstractLanguageServerProtocolTests.InitializationOptions.cs (1)
19internal Action<IGlobalOptionService>? OptionUpdater { get; init; } = null;
Utilities\GlobalOptionsExtensions.cs (2)
19/// Sets options stored in <see cref="IGlobalOptionService"/> that are read by command handlers from the text editor to given <see cref="IEditorOptions"/>. 21public static void SetEditorOptions(this IGlobalOptionService globalOptions, IEditorOptions editorOptions, string language)
Workspaces\TestWorkspace.cs (3)
52internal IGlobalOptionService GlobalOptions { get; } 96this.GlobalOptions = GetService<IGlobalOptionService>(); 848var globalOptions = GlobalOptions;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Utilities\GoToHelpers\MockNavigableItemsPresenter.vb (1)
17Public Sub New(globalOptions As IGlobalOptionService, action As Action)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (49)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (24)
55private static IGlobalOptionService GetGlobalOptions(Workspace workspace) 56=> workspace.Services.SolutionServices.ExportProvider.GetExportedValue<IGlobalOptionService>(); 80var globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>(); 104var globalOptions = GetGlobalOptions(workspace); 153var globalOptions = GetGlobalOptions(workspace); 172var globalOptions = GetGlobalOptions(workspace); 255var globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>(); 286var globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>(); 372var globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>(); 471var globalOptions = GetGlobalOptions(workspace); 566var globalOptions = GetGlobalOptions(workspace); 599var globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>(); 629var globalOptions = GetGlobalOptions(workspace); 763var globalOptions = workspace.GetService<IGlobalOptionService>(); 994var globalOptions = workspace.GetService<IGlobalOptionService>(); 1149var globalOptions = workspace.GetService<IGlobalOptionService>();
Diagnostics\MockDiagnosticService.cs (1)
31public MockDiagnosticService(IGlobalOptionService globalOptions)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (2)
58var 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)
44[Export(typeof(IGlobalOptionService)), Shared, PartNotDiscoverable] 154globalOptions = Assert.IsType<TestGlobalOptions>(workspace.ExportProvider.GetExportedValue<IGlobalOptionService>()); 170/// Our mock <see cref="IGlobalOptionService"/> implementation returns a non-default value for each option it reads.
RenameTracking\RenameTrackingTestState.cs (1)
106Workspace.GetService<IGlobalOptionService>(),
SolutionCrawler\WorkCoordinatorTests.cs (7)
1706var globalOptions = workspace.Services.SolutionServices.ExportProvider.GetExportedValue<IGlobalOptionService>(); 1739public AnalyzerProviderNoWaitNoBlock(IGlobalOptionService globalOptions) 1752public AnalyzerProviderWaitNoBlock(IGlobalOptionService globalOptions) 1765public AnalyzerProviderNoWaitBlock(IGlobalOptionService globalOptions) 1809private readonly IGlobalOptionService _globalOptions; 1813public Analyzer(IGlobalOptionService globalOptions, bool waitForCancellation = false, bool blockedRun = false)
Structure\StructureTaggerTests.cs (5)
57var globalOptions = workspace.GlobalOptions; 123var globalOptions = workspace.GlobalOptions; 168var globalOptions = workspace.GlobalOptions; 213var globalOptions = workspace.GlobalOptions; 265var globalOptions = workspace.GlobalOptions;
Tagging\AsynchronousTaggerTests.cs (2)
70workspace.GetService<IGlobalOptionService>(), 159IGlobalOptionService globalOptions,
Microsoft.CodeAnalysis.EditorFeatures.Wpf (41)
Adornments\AbstractAdornmentManagerProvider.cs (2)
25protected readonly IGlobalOptionService GlobalOptions; 30IGlobalOptionService globalOptions,
InlineDiagnostics\InlineDiagnosticsAdornmentManager.cs (2)
31private readonly IGlobalOptionService _globalOptions; 41IGlobalOptionService globalOptions)
InlineDiagnostics\InlineDiagnosticsAdornmentManagerProvider.cs (1)
43IGlobalOptionService globalOptions,
InlineDiagnostics\InlineDiagnosticsTaggerProvider.cs (1)
47IGlobalOptionService globalOptions,
InlineHints\InlineHintsKeyProcessorProvider.cs (4)
26private readonly IGlobalOptionService _globalOptions; 30public InlineHintsKeyProcessorProvider(IGlobalOptionService globalOptions) 40private readonly IGlobalOptionService _globalOptions; 43public InlineHintsKeyProcessor(IGlobalOptionService globalOptions, IWpfTextView view)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (2)
31private readonly IGlobalOptionService _globalOptionService; 37public RenameFlyoutViewModel(InlineRenameSession session, TextSpan selectionSpan, bool registerOleComponent, IGlobalOptionService globalOptionService)
InlineRename\UI\InlineRenameAdornmentManager.cs (2)
23private readonly IGlobalOptionService _globalOptionService; 41IGlobalOptionService globalOptionService,
InlineRename\UI\InlineRenameAdornmentProvider.cs (2)
31private readonly IGlobalOptionService _globalOptionService; 54IGlobalOptionService globalOptionService,
Interactive\InteractiveWindowWorkspace.cs (1)
15public InteractiveWindowWorkspace(HostServices hostServices, IGlobalOptionService globalOptions)
LineSeparators\LineSeparatorAdornmentManagerProvider.cs (1)
45IGlobalOptionService globalOptions,
LineSeparators\LineSeparatorTaggerProvider.cs (1)
57IGlobalOptionService globalOptions,
Peek\DefinitionPeekableItem.cs (2)
24private readonly IGlobalOptionService _globalOptions; 31IGlobalOptionService globalOptions,
Peek\PeekableItemFactory.cs (2)
32private readonly IGlobalOptionService _globalOptions; 39IGlobalOptionService globalOptions,
SignatureHelp\AbstractSignatureHelpCommandHandler.cs (2)
22private readonly IGlobalOptionService _globalOptions; 27IGlobalOptionService globalOptions)
SignatureHelp\Controller.cs (2)
41IGlobalOptionService globalOptions, 58IGlobalOptionService globalOptions,
SignatureHelp\SignatureHelpAfterCompletionCommandHandler.cs (1)
57IGlobalOptionService globalOptions)
SignatureHelp\SignatureHelpBeforeCompletionCommandHandler.cs (1)
56IGlobalOptionService globalOptions)
SignatureHelp\SignatureHelpControllerProvider.cs (2)
29private readonly IGlobalOptionService _globalOptions; 38IGlobalOptionService globalOptions,
StringIndentation\StringIndentationAdornmentManagerProvider.cs (1)
45IGlobalOptionService globalOptions,
StringIndentation\StringIndentationTaggerProvider.cs (1)
50IGlobalOptionService globalOptions,
Structure\StructureTaggerProvider.cs (1)
40IGlobalOptionService globalOptions,
Suggestions\AsyncSuggestedActionsSource.cs (1)
38IGlobalOptionService globalOptions,
Suggestions\SuggestedActionsSource.cs (3)
45public readonly IGlobalOptionService GlobalOptions; 49IGlobalOptionService globalOptions, 303IGlobalOptionService globalOptions,
Suggestions\SuggestedActionsSourceProvider.cs (2)
57private readonly IGlobalOptionService _globalOptions; 74IGlobalOptionService globalOptions,
Suggestions\SyncSuggestedActionsSource.cs (1)
19IGlobalOptionService globalOptions,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (20)
Classification\ClassificationTests.vb (1)
266workspace.GetService(Of IGlobalOptionService),
GoToDefinition\GoToDefinitionCommandHandlerTests.vb (3)
61workspace.GetService(Of IGlobalOptionService), 103workspace.GetService(Of IGlobalOptionService), 148workspace.GetService(Of IGlobalOptionService),
InlineHints\AbstractInlineHintsTests.vb (1)
79Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (5)
5220Dim globalOptions = state.Workspace.GetService(Of IGlobalOptionService) 5284Dim globalOptions = state.Workspace.GetService(Of IGlobalOptionService) 10350Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 10405Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 10458Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
IntelliSense\CSharpSignatureHelpCommandHandlerTests.vb (1)
887state.Workspace.GetService(Of IGlobalOptionService).SetGlobalOption(SignatureHelpViewOptionsStorage.ShowSignatureHelp, LanguageNames.CSharp, False)
IntelliSense\VisualBasicSignatureHelpCommandHandlerTests.vb (1)
287state.Workspace.GetService(Of IGlobalOptionService).SetGlobalOption(SignatureHelpViewOptionsStorage.ShowSignatureHelp, LanguageNames.VisualBasic, False)
KeywordHighlighting\AbstractKeywordHighlightingTests.vb (1)
30Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
ReferenceHighlighting\AbstractReferenceHighlightingTests.vb (1)
30Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
Rename\InlineRenameTests.vb (2)
128Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 248Dim globalOptions = workspace.GetService(Of IGlobalOptionService)()
Rename\RenameCommandHandlerTests.vb (1)
237Dim optionsService = workspace.GetService(Of IGlobalOptionService)()
Rename\RenameTestHelpers.vb (1)
115workspace.GetService(Of IGlobalOptionService)(),
Rename\RenameViewModelTests.vb (2)
554Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 696Dim globalOptions = workspace.GetService(Of IGlobalOptionService)()
Microsoft.CodeAnalysis.ExternalAccess.FSharp (6)
FSharpGlobalOptions.cs (2)
19private readonly IGlobalOptionService _globalOptions; 23public FSharpGlobalOptions(IGlobalOptionService globalOptions)
Internal\Editor\FSharpEditorFormattingService.cs (2)
26private readonly IGlobalOptionService _globalOptions; 30public FSharpEditorFormattingService(IFSharpEditorFormattingService service, IGlobalOptionService globalOptions)
Internal\Editor\FSharpSmartIndentProvider.cs (2)
36private readonly IGlobalOptionService _globalOptions; 43IGlobalOptionService globalOptions)
Microsoft.CodeAnalysis.ExternalAccess.Razor (4)
RazorGlobalOptions.cs (2)
20private readonly IGlobalOptionService _globalOptions; 24public RazorGlobalOptions(IGlobalOptionService globalOptions)
RazorTestAnalyzerLoader.cs (2)
19private readonly IGlobalOptionService _globalOptionService; 23public RazorTestAnalyzerLoader(IDiagnosticAnalyzerService analyzerService, IDiagnosticService diagnosticService, IGlobalOptionService globalOptionService)
Microsoft.CodeAnalysis.Features (1)
Diagnostics\IDiagnosticAnalyzerService.cs (1)
18public IGlobalOptionService GlobalOptions { get; }
Microsoft.CodeAnalysis.LanguageServer.Protocol (144)
Extensions\ProtocolConversions.cs (1)
696IGlobalOptionService globalOptions,
ExternalAccess\VSCode\API\VSCodeAnalyzerLoader.cs (2)
19private readonly IGlobalOptionService _globalOptionService; 23public VSCodeAnalyzerLoader(IDiagnosticAnalyzerService analyzerService, IDiagnosticService diagnosticService, IGlobalOptionService globalOptionService)
ExternalAccess\VSMac\SolutionCrawlerOptionsAccessor.cs (1)
21public static BackgroundAnalysisScope GetBackgroundAnalysisScope(IGlobalOptionService globalOptions, string language)
Features\Diagnostics\DefaultDiagnosticAnalyzerService.cs (2)
27private readonly IGlobalOptionService _globalOptions; 33IGlobalOptionService globalOptions)
Features\Diagnostics\DiagnosticAnalyzerService.cs (2)
37public IGlobalOptionService GlobalOptions { get; } 48IGlobalOptionService globalOptions)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
200public static bool IsAnalyzerEnabledForProject(DiagnosticAnalyzer analyzer, Project project, IGlobalOptionService globalOptions)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.cs (1)
87internal IGlobalOptionService GlobalOptions => AnalyzerService.GlobalOptions;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectState.cs (1)
240public async ValueTask MergeAsync(ActiveFileState state, TextDocument document, IGlobalOptionService globalOptions)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (1)
152public async Task<bool> OnDocumentClosedAsync(TextDocument document, IGlobalOptionService globalOptions)
Features\FindUsages\SimpleFindUsagesContext.cs (2)
22private readonly IGlobalOptionService _globalOptions; 30public SimpleFindUsagesContext(IGlobalOptionService globalOptions)
Features\Options\AddImportPlacementOptionsStorage.cs (2)
14public static ValueTask<AddImportPlacementOptions> GetAddImportPlacementOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 17public static AddImportPlacementOptions GetAddImportPlacementOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
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\ClassificationOptionsStorage.cs (1)
11public static ClassificationOptions GetClassificationOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\CodeActionOptionsStorage.cs (2)
24public static CodeActionOptions GetCodeActionOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices) 38internal static CodeActionOptionsProvider GetCodeActionOptionsProvider(this IGlobalOptionService globalOptions)
Features\Options\CodeCleanupOptionsStorage.cs (1)
14public static ValueTask<CodeCleanupOptions> GetCodeCleanupOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken)
Features\Options\CodeGenerationOptionsStorage.cs (5)
14public static ValueTask<CodeGenerationOptions> GetCodeGenerationOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 17public static ValueTask<CleanCodeGenerationOptions> GetCleanCodeGenerationOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 20public static CodeGenerationOptions GetCodeGenerationOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices) 23public static CodeAndImportGenerationOptions GetCodeAndImportGenerationOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices) 26public static CleanCodeGenerationOptions GetCleanCodeGenerationOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
Features\Options\CodeStyleOptionsStorage.cs (1)
12public static IdeCodeStyleOptions GetCodeStyleOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
Features\Options\CompletionOptionsStorage.cs (1)
12public static CompletionOptions GetCompletionOptions(this IGlobalOptionService options, string language)
Features\Options\DiagnosticModeExtensions.cs (3)
12public static DiagnosticMode GetDiagnosticMode(this IGlobalOptionService globalOptions, Option2<DiagnosticMode>? option = null) 23public static bool IsLspPullDiagnostics(this IGlobalOptionService globalOptions, Option2<DiagnosticMode>? option = null) 26public static bool IsSolutionCrawlerPushDiagnostics(this IGlobalOptionService globalOptions, Option2<DiagnosticMode>? option = null)
Features\Options\DocumentationCommentOptionsStorage.cs (1)
15public static DocumentationCommentOptions GetDocumentationCommentOptions(this IGlobalOptionService globalOptions, LineFormattingOptions lineFormatting, string language)
Features\Options\DocumentFormattingOptionsStorage.cs (2)
13public static ValueTask<DocumentFormattingOptions> GetDocumentFormattingOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 16public static DocumentFormattingOptions GetDocumentFormattingOptions(this IGlobalOptionService globalOptions)
Features\Options\ExtractMethodOptionsStorage.cs (3)
18public static ExtractMethodOptions GetExtractMethodOptions(this IGlobalOptionService globalOptions, string language) 24public static ExtractMethodGenerationOptions GetExtractMethodGenerationOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices) 33public static ValueTask<ExtractMethodGenerationOptions> GetExtractMethodGenerationOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken)
Features\Options\FindUsagesOptionsStorage.cs (1)
12public static FindUsagesOptions GetFindUsagesOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\GlobalCodeActionOptionsProvider.cs (3)
26public static Provider CreateProvider(this IGlobalOptionService globalOptions) 40private readonly IGlobalOptionService _globalOptions; 42public Provider(IGlobalOptionService globalOptions)
Features\Options\HighlightingOptionsStorage.cs (1)
11public static HighlightingOptions GetHighlightingOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\IdeAnalyzerOptionsStorage.cs (2)
15public static IdeAnalyzerOptions GetIdeAnalyzerOptions(this IGlobalOptionService globalOptions, Project project) 18public static IdeAnalyzerOptions GetIdeAnalyzerOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
Features\Options\ImplementTypeOptionsStorage.cs (2)
12public static ImplementTypeOptions GetImplementTypeOptions(this IGlobalOptionService globalOptions, string language) 19public static ImplementTypeGenerationOptions GetImplementTypeGenerationOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
Features\Options\IndentationOptionsStorage.cs (1)
14public static async Task<IndentationOptions> GetIndentationOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken)
Features\Options\LineFormattingOptionsStorage.cs (2)
13public static ValueTask<LineFormattingOptions> GetLineFormattingOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 16public static LineFormattingOptions GetLineFormattingOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\MetadataAsSourceOptionsStorage.cs (1)
13public static MetadataAsSourceOptions GetMetadataAsSourceOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
Features\Options\NamingStyleOptionsStorage.cs (1)
12public static NamingStylePreferences GetNamingStylePreferences(this IGlobalOptionService globalOptions, string language)
Features\Options\OrganizeImportsOptionsStorage.cs (2)
13public static ValueTask<OrganizeImportsOptions> GetOrganizeImportsOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 16public static OrganizeImportsOptions GetOrganizeImportsOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\QuickInfoOptionsStorage.cs (1)
11public static QuickInfoOptions GetQuickInfoOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\SignatureHelpOptionsStorage.cs (1)
12public static SignatureHelpOptions GetSignatureHelpOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\SimplifierOptionsStorage.cs (2)
14public static ValueTask<SimplifierOptions> GetSimplifierOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 17public static SimplifierOptions GetSimplifierOptions(this IGlobalOptionService options, LanguageServices languageServices)
Features\Options\SolutionCrawlerOptionsService.cs (2)
15private readonly IGlobalOptionService _globalOptions; 19public SolutionCrawlerOptionsService(IGlobalOptionService globalOptions)
Features\Options\SolutionCrawlerOptionsStorage.cs (8)
52public static BackgroundAnalysisScope GetBackgroundAnalysisScope(this IGlobalOptionService globalOptions, string language) 70public static CompilerDiagnosticsScope GetBackgroundCompilerAnalysisScope(this IGlobalOptionService globalOptions, string language) 91public static bool IsFullSolutionAnalysisEnabled(this DiagnosticAnalyzer analyzer, IGlobalOptionService globalOptions, string language) 108/// <see cref="IsFullSolutionAnalysisEnabled(IGlobalOptionService, string, out bool, out bool)"/>. 111this IGlobalOptionService globalOptions, 125/// <see cref="IsFullSolutionAnalysisEnabled(IGlobalOptionService, string)"/>. 138this IGlobalOptionService globalOptions, 154this IGlobalOptionService globalOptions,
Features\Options\SymbolDescriptionOptionsStorage.cs (1)
13public static SymbolDescriptionOptions GetSymbolDescriptionOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\SymbolSearchOptionsStorage.cs (1)
11internal static SymbolSearchOptions GetSymbolSearchOptions(this IGlobalOptionService globalOptions, string language)
Features\Options\SyntaxFormattingOptionsStorage.cs (2)
14public static ValueTask<SyntaxFormattingOptions> GetSyntaxFormattingOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 17public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
Features\Options\WorkspaceConfigurationOptionsStorage.cs (1)
13public static WorkspaceConfigurationOptions GetWorkspaceConfigurationOptions(this IGlobalOptionService globalOptions)
Features\Options\WorkspaceConfigurationService.cs (2)
16private readonly IGlobalOptionService _globalOptions; 21public WorkspaceConfigurationService(IGlobalOptionService globalOptions)
Features\SolutionCrawler\MiscSolutionCrawlerWorkspaceEventListener.cs (2)
16private readonly IGlobalOptionService _globalOptions; 20public MiscSolutionCrawlerWorkspaceEventListener(IGlobalOptionService globalOptions)
Features\TaskList\TaskListOptionsStorage.cs (1)
15public static TaskListOptions GetTaskListOptions(this IGlobalOptionService globalOptions)
Handler\CodeActions\CodeActionResolveHandler.cs (2)
42private readonly IGlobalOptionService _globalOptions; 49IGlobalOptionService globalOptions)
Handler\CodeActions\CodeActionsHandler.cs (2)
32private readonly IGlobalOptionService _globalOptions; 44IGlobalOptionService globalOptions)
Handler\Completion\CompletionHandler.cs (2)
39private readonly IGlobalOptionService _globalOptions; 49IGlobalOptionService globalOptions,
Handler\Completion\CompletionResolveHandler.cs (2)
36private readonly IGlobalOptionService _globalOptions; 41public CompletionResolveHandler(IGlobalOptionService globalOptions, CompletionListCache completionListCache)
Handler\Completion\CompletionResolveHandlerFactory.cs (2)
16private readonly IGlobalOptionService _globalOptions; 20public CompletionResolveHandlerFactory(IGlobalOptionService globalOptions)
Handler\Definitions\AbstractGoToDefinitionHandler.cs (2)
24private readonly IGlobalOptionService _globalOptions; 26public AbstractGoToDefinitionHandler(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions)
Handler\Definitions\GoToDefinitionHandler.cs (1)
22public GoToDefinitionHandler(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions)
Handler\Definitions\GoToTypeDefinitionHandler.cs (1)
22public GoToTypeDefinitionHandler(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (3)
29IGlobalOptionService globalOptions) : base(diagnosticAnalyzerService, editAndContinueDiagnosticUpdateSource, globalOptions) 54protected readonly IGlobalOptionService GlobalOptions; 73IGlobalOptionService globalOptions)
Handler\Diagnostics\DiagnosticSources\TaskListDiagnosticSource.cs (2)
30private readonly IGlobalOptionService _globalOptions; 32public TaskListDiagnosticSource(Document document, IGlobalOptionService globalOptions)
Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (2)
24IGlobalOptionService globalOptions) 103DiagnosticKind diagnosticKind, bool taskList, RequestContext context, IGlobalOptionService globalOptions)
Handler\Diagnostics\DocumentPullDiagnosticHandlerFactory.cs (2)
19private readonly IGlobalOptionService _globalOptions; 26IGlobalOptionService globalOptions)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticHandlerFactory.cs (2)
23private readonly IGlobalOptionService _globalOptions; 30IGlobalOptionService globalOptions)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler.cs (1)
31IGlobalOptionService globalOptions)
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticHandlerFactory.cs (2)
20private readonly IGlobalOptionService _globalOptions; 28IGlobalOptionService globalOptions)
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticsHandler.cs (1)
43IGlobalOptionService globalOptions)
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (3)
26public WorkspacePullDiagnosticHandler(IDiagnosticAnalyzerService analyzerService, EditAndContinueDiagnosticUpdateSource editAndContinueDiagnosticUpdateSource, IGlobalOptionService globalOptions) 139RequestContext context, IGlobalOptionService globalOptions) 163RequestContext context, IGlobalOptionService globalOptions, CancellationToken cancellationToken)
Handler\Diagnostics\WorkspacePullDiagnosticHandlerFactory.cs (2)
19private readonly IGlobalOptionService _globalOptions; 26IGlobalOptionService globalOptions)
Handler\FoldingRanges\FoldingRangesHandler.cs (2)
24private readonly IGlobalOptionService _globalOptions; 31public FoldingRangesHandler(IGlobalOptionService globalOptions)
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
27IGlobalOptionService globalOptions,
Handler\Formatting\FormatDocumentHandler.cs (2)
19private readonly IGlobalOptionService _globalOptions; 23public FormatDocumentHandler(IGlobalOptionService globalOptions)
Handler\Formatting\FormatDocumentOnTypeHandler.cs (2)
28private readonly IGlobalOptionService _globalOptions; 35public FormatDocumentOnTypeHandler(IGlobalOptionService globalOptions)
Handler\Formatting\FormatDocumentRangeHandler.cs (2)
19private readonly IGlobalOptionService _globalOptions; 23public FormatDocumentRangeHandler(IGlobalOptionService globalOptions)
Handler\Highlights\DocumentHighlightHandler.cs (2)
28private readonly IGlobalOptionService _globalOptions; 32public DocumentHighlightsHandler(IHighlightingService highlightingService, IGlobalOptionService globalOptions)
Handler\Hover\HoverHandler.cs (2)
28private readonly IGlobalOptionService _globalOptions; 32public HoverHandler(IGlobalOptionService globalOptions)
Handler\InlineCompletions\InlineCompletionsHandler.cs (2)
46private readonly IGlobalOptionService _globalOptions; 54public InlineCompletionsHandler(XmlSnippetParser xmlSnippetParser, IGlobalOptionService globalOptions)
Handler\OnAutoInsert\OnAutoInsertHandler.cs (2)
33private readonly IGlobalOptionService _globalOptions; 43IGlobalOptionService globalOptions)
Handler\References\FindAllReferencesHandler.cs (2)
29private readonly IGlobalOptionService _globalOptions; 36IGlobalOptionService globalOptions)
Handler\References\FindImplementationsHandler.cs (2)
22private readonly IGlobalOptionService _globalOptions; 26public FindImplementationsHandler(IGlobalOptionService globalOptions)
Handler\References\FindUsagesLSPContext.cs (2)
41private readonly IGlobalOptionService _globalOptions; 84IGlobalOptionService globalOptions,
Handler\Rename\RenameHandler.cs (2)
24private readonly IGlobalOptionService _optionsService; 28public RenameHandler(IGlobalOptionService optionsService)
Handler\SemanticTokens\SemanticTokensRangeHandler.cs (2)
20private readonly IGlobalOptionService _globalOptions; 27IGlobalOptionService globalOptions,
Handler\SemanticTokens\SemanticTokensRangeHandlerFactory.cs (2)
15private readonly IGlobalOptionService _globalOptions; 20IGlobalOptionService globalOptions)
Handler\SignatureHelp\SignatureHelpHandler.cs (2)
26private readonly IGlobalOptionService _globalOptions; 32IGlobalOptionService globalOptions)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (8)
Completion\CompletionTests.cs (2)
1289var globalOptions = testLspServer.TestWorkspace.GetService<IGlobalOptionService>();
Diagnostics\AbstractPullDiagnosticTestsBase.cs (2)
63var optionService = testLspServer.TestWorkspace.GetService<IGlobalOptionService>();
Options\LspOptionsTests.cs (4)
37var globalOptions = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<IGlobalOptionService>(); 51var globalOptions = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<IGlobalOptionService>();
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (16)
AddImports\VisualBasicAddImportsOnPasteCommandHandler.vb (1)
26globalOptions As IGlobalOptionService,
AutomaticEndConstructCorrection\ViewCreationListener.vb (2)
24Private ReadOnly _globalOptions As IGlobalOptionService 29globalOptions As IGlobalOptionService)
ChangeSignature\VisualBasicChangeSignatureCommandHandler.vb (1)
22Public Sub New(threadingContext As IThreadingContext, globalOptions As IGlobalOptionService)
EncapsulateField\EncapsulateFieldCommandHandler.vb (1)
28globalOptions As IGlobalOptionService,
ExtractInterface\ExtractInterfaceCommandHandler.vb (1)
23Public Sub New(threadingContext As IThreadingContext, globalOptions As IGlobalOptionService)
ImplementAbstractClass\ImplementAbstractClassCommandHandler.vb (1)
30globalOptions As IGlobalOptionService)
ImplementInterface\ImplementInterfaceCommandHandler.vb (1)
30globalOptions As IGlobalOptionService)
InlineRename\VisualBasicEditorInlineRenameService.vb (1)
18<ImportMany> refactorNotifyServices As IEnumerable(Of IRefactorNotifyService), globalOptions As IGlobalOptionService)
LineCommit\CommitCommandHandler.vb (2)
46Private ReadOnly _globalOptions As IGlobalOptionService 61globalOptions As IGlobalOptionService)
NavigationBar\VisualBasicEditorNavigationBarItemService.vb (2)
27Private ReadOnly _globalOptions As IGlobalOptionService 35globalOptions As IGlobalOptionService)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
52Public Shared Async Function GetGeneratedDocumentAsync(document As Document, generateCodeItem As RoslynNavigationBarItem, globalOptions As IGlobalOptionService, cancellationToken As CancellationToken) As Task(Of Document)
Utilities\CommandHandlers\AbstractImplementAbstractClassOrInterfaceCommandHandler.vb (2)
28Private ReadOnly _globalOptions As IGlobalOptionService 37globalOptions As IGlobalOptionService)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (13)
BraceMatching\BraceHighlightingTests.vb (1)
33workspace.GetService(Of IGlobalOptionService),
EndConstructGeneration\EndConstructTestingHelpers.vb (3)
37Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 67Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 211Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
Formatting\Indentation\SmartIndentProviderTests.vb (2)
27Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 41Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
ImplementAbstractClass\ImplementAbstractClassCommandHandlerTests.vb (1)
212New ImplementAbstractClassCommandHandler(workspace.GetService(Of IEditorOperationsFactoryService), workspace.GetService(Of IGlobalOptionService))
ImplementInterface\ImplementInterfaceCommandHandlerTests.vb (2)
42Return New ImplementInterfaceCommandHandler(workspace.GetService(Of IEditorOperationsFactoryService), workspace.GetService(Of IGlobalOptionService)) 67Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
LineCommit\CommitOnMiscellaneousCommandsTests.vb (3)
74Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 133Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 182Dim globalOptions = workspace.GetService(Of IGlobalOptionService)
LineCommit\CommitTestData.vb (1)
73workspace.GetService(Of IGlobalOptionService))
Microsoft.CodeAnalysis.Workspaces (5)
Options\GlobalOptionService.cs (1)
19[Export(typeof(IGlobalOptionService)), Shared]
Options\ILegacyWorkspaceOptionService.cs (1)
22IGlobalOptionService GlobalOptions { get; }
Options\LegacyGlobalCodeActionOptionsWorkspaceService.cs (1)
32public LegacyGlobalCleanCodeGenerationOptionsWorkspaceService(IGlobalOptionService globalOptions)
Options\LegacyWorkspaceOptionService.cs (2)
30public IGlobalOptionService GlobalOptions { get; } 42public LegacyGlobalOptionService(IGlobalOptionService globalOptionService)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Fakes\StubStreamingFindUsagesPresenter.cs (2)
20private readonly IGlobalOptionService _globalOptions; 24public StubStreamingFindUsagesPresenter(IGlobalOptionService globalOptions)
OptionsCollection.cs (1)
87public void SetGlobalOptions(IGlobalOptionService globalOptions)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (3)
24private static IGlobalOptionService GetGlobalOptionService(HostWorkspaceServices services) 25=> services.SolutionServices.ExportProvider.GetExportedValue<IGlobalOptionService>(); 170var globalOptions = GetGlobalOptionService(workspace.Services);
Microsoft.VisualStudio.IntegrationTest.Utilities (2)
InProcess\VisualStudioWorkspace_InProc.cs (2)
28private readonly IGlobalOptionService _globalOptions; 36_globalOptions = GetComponentModelService<IGlobalOptionService>();
Microsoft.VisualStudio.LanguageServices (119)
CodeCleanup\AbstractCodeCleanUpFixer.cs (2)
50private readonly IGlobalOptionService _globalOptions; 56IGlobalOptionService globalOptions)
CodeLens\RemoteCodeLensReferencesService.cs (2)
28private readonly IGlobalOptionService _globalOptions; 32public RemoteCodeLensReferencesService(IGlobalOptionService globalOptions)
ColorSchemes\ColorSchemeApplier.cs (1)
46IGlobalOptionService globalOptions,
ColorSchemes\ColorSchemeApplier.Settings.cs (2)
30private readonly IGlobalOptionService _globalOptions; 35IGlobalOptionService globalOptions)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (3)
45private readonly IGlobalOptionService _globalOptions; 58IGlobalOptionService globalOptions) 204static BackgroundAnalysisScope? GetBackgroundAnalysisScope(Solution solution, IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsProvider.cs (1)
19public 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)
ExtractClass\VisualStudioExtractClassOptionsService.cs (2)
36private readonly IGlobalOptionService _globalOptions; 44IGlobalOptionService globalOptions)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (2)
60private readonly IGlobalOptionService _globalOptions; 122IGlobalOptionService globalOptions,
FindReferences\Contexts\WithoutReferencesFindUsagesContext.cs (1)
33IGlobalOptionService globalOptions,
FindReferences\Contexts\WithReferencesFindUsagesContext.cs (1)
37IGlobalOptionService globalOptions,
FindReferences\StreamingFindUsagesPresenter.cs (4)
53private readonly IGlobalOptionService _globalOptions; 69IGlobalOptionService globalOptions, 96exportProvider.GetExportedValue<IGlobalOptionService>(), 110IGlobalOptionService optionService,
Implementation\AbstractEditorFactory.cs (2)
339var globalOptions = _componentModel.GetService<IGlobalOptionService>();
Implementation\AbstractVsTextViewFilter.cs (3)
166var globalOptions = ComponentModel.GetService<IGlobalOptionService>(); 179internal static int GetPairExtentsWorker(ITextView textView, IBraceMatchingService braceMatcher, IGlobalOptionService globalOptions, int iLine, int iIndex, TextSpan[] pSpan, bool extendSelection, CancellationToken cancellationToken)
Implementation\VirtualMemoryNotificationListener.cs (3)
36private readonly IGlobalOptionService _globalOptions; 45IGlobalOptionService globalOptions, 69IGlobalOptionService globalOptions,
Implementation\VisualStudioWorkspaceContextService.cs (2)
23private readonly IGlobalOptionService _globalOptions; 27public VisualStudioWorkspaceContextService(IGlobalOptionService globalOptions)
InheritanceMargin\InheritanceGlyphFactory.cs (2)
36private readonly IGlobalOptionService _globalOptions; 46IGlobalOptionService globalOptions,
InheritanceMargin\InheritanceGlyphFactoryProvider.cs (2)
37private readonly IGlobalOptionService _globalOptions; 48IGlobalOptionService globalOptions,
InheritanceMargin\InheritanceMarginTaggerProvider.cs (1)
44IGlobalOptionService globalOptions,
InheritanceMargin\InheritanceMarginViewMargin.cs (2)
33private readonly IGlobalOptionService _globalOptions; 55IGlobalOptionService globalOptions,
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (2)
42private readonly IGlobalOptionService _globalOptions; 55IGlobalOptionService globalOptions,
InlineRename\InlineRenameUndoManager.cs (3)
41private readonly IGlobalOptionService _globalOptionService; 48IGlobalOptionService globalOptionService) 105public InlineRenameUndoManager(InlineRenameService inlineRenameService, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, IGlobalOptionService globalOptionService) : base(inlineRenameService, globalOptionService)
KeybindingReset\KeybindingResetDetector.cs (2)
66private readonly IGlobalOptionService _globalOptions; 94IGlobalOptionService globalOptions,
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (2)
36protected IGlobalOptionService GlobalOptions { get; } 43IGlobalOptionService globalOptions,
LanguageService\AbstractLanguageService`2.cs (2)
203var globalOptions = this.Package.ComponentModel.GetService<IGlobalOptionService>();
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (2)
37private readonly IGlobalOptionService _globalOptions; 49_globalOptions = languageService.Package.ComponentModel.GetService<IGlobalOptionService>();
Options\PackageSettingsPersister.cs (2)
22private readonly IGlobalOptionService _optionService; 28IGlobalOptionService optionService)
Options\PackageSettingsPersisterProvider.cs (2)
22private readonly IGlobalOptionService _optionService; 30IGlobalOptionService optionService)
Packaging\PackageInstallerServiceFactory.cs (1)
100IGlobalOptionService globalOptions,
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
70private readonly IGlobalOptionService _globalOptions; 119_globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>();
Remote\VisualStudioRemoteHostClientProvider.cs (4)
34private readonly IGlobalOptionService _globalOptions; 42IGlobalOptionService globalOptions, 71private readonly IGlobalOptionService _globalOptions; 80IGlobalOptionService globalOptions,
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (2)
23private readonly IGlobalOptionService _globalOptions; 31_globalOptions = package.ComponentModel.GetService<IGlobalOptionService>();
SymbolSearch\AbstractDelayStartedService.cs (2)
27private readonly IGlobalOptionService _globalOptions; 54IGlobalOptionService globalOptions,
SymbolSearch\VisualStudioSymbolSearchService.cs (1)
62IGlobalOptionService globalOptions,
SyncNamespaces\SyncNamespacesCommandHandler.cs (2)
34private readonly IGlobalOptionService _globalOptions; 43IGlobalOptionService globalOptions,
TableDataSource\MiscellaneousDiagnosticListTable.cs (3)
22private readonly IGlobalOptionService _globalOptions; 29IGlobalOptionService globalOptions, 47IGlobalOptionService globalOptions,
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (2)
59private readonly IGlobalOptionService _globalOptions; 76IGlobalOptionService globalOptions)
TableDataSource\VisualStudioBaseDiagnosticListTable.LiveTableDataSource.cs (4)
62IGlobalOptionService globalOptions, 81public IGlobalOptionService GlobalOptions { get; } 298private readonly IGlobalOptionService _globalOptions; 304public TableEntriesSource(LiveTableDataSource source, Workspace workspace, IGlobalOptionService globalOptions, ProjectId? projectId, DocumentId? documentId, object id)
TableDataSource\VisualStudioDiagnosticListTable.cs (5)
30private readonly IGlobalOptionService _globalOptions; 39IGlobalOptionService globalOptions, 89IGlobalOptionService globalOptions, 120IGlobalOptionService globalOptions, 203public static VisualStudioDiagnosticListTable Create(Workspace workspace, IGlobalOptionService globalOptions, IThreadingContext threadingContext, IDiagnosticService diagnosticService, ITableManagerProvider provider)
TaskList\TaskListIncrementalAnalyzer.cs (2)
31private readonly IGlobalOptionService _globalOptions; 35IGlobalOptionService globalOptions,
TaskList\TaskListIncrementalAnalyzerProvider.cs (2)
19private readonly IGlobalOptionService _globalOptions; 22public TaskListIncrementalAnalyzerProvider(IGlobalOptionService globalOptions, VisualStudioTaskListService listener)
TaskList\VisualStudioTaskListService.cs (2)
40private readonly IGlobalOptionService _globalOptions; 58IGlobalOptionService globalOptions,
Telemetry\FileLogger.cs (2)
35public FileLogger(IGlobalOptionService globalOptions, string logFilePath) 45public FileLogger(IGlobalOptionService optionService)
Telemetry\VisualStudioWorkspaceTelemetryService.cs (2)
26private readonly IGlobalOptionService _globalOptions; 32IGlobalOptionService globalOptions)
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (2)
38private readonly IGlobalOptionService _globalOptions; 52IGlobalOptionService globalOptions)
ValueTracking\ValueTrackedTreeItemViewModel.cs (3)
30private readonly IGlobalOptionService _globalOptions; 51IGlobalOptionService globalOptions, 98IGlobalOptionService globalOptions,
ValueTracking\ValueTrackingCommandHandler.cs (2)
46private readonly IGlobalOptionService _globalOptions; 60IGlobalOptionService globalOptions,
Venus\ContainedLanguage.cs (1)
146public IGlobalOptionService GlobalOptions => _diagnosticAnalyzerService.GlobalOptions;
Venus\ContainedLanguageCodeSupport.cs (3)
58Document document, IGlobalOptionService globalOptions, string className, string objectName, string nameOfEvent, CancellationToken cancellationToken) 155IGlobalOptionService globalOptions, 256IGlobalOptionService globalOptions,
Workspace\VisualStudioSymbolNavigationService.cs (2)
36private readonly IGlobalOptionService _globalOptions; 45IGlobalOptionService globalOptions,
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (2)
32private readonly IGlobalOptionService _globalOptions; 40IGlobalOptionService globalOptions,
Microsoft.VisualStudio.LanguageServices.CSharp (12)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsLanguageServiceFactory.cs (2)
19private readonly IGlobalOptionService _globalOptions; 23public CSharpCodeStyleSettingsLanguageServiceFactory(IGlobalOptionService globalOptions)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
21public 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)
26public 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\CSharpCodeCleanupFixer.cs (1)
24public CSharpCodeCleanUpFixer(IThreadingContext threadingContext, VisualStudioWorkspaceImpl workspace, IVsHierarchyItemManager vsHierarchyItemManager, IGlobalOptionService globalOptions)
LanguageService\CSharpCreateServicesOnTextViewConnection.cs (1)
33IGlobalOptionService globalOptions,
Microsoft.VisualStudio.LanguageServices.Implementation (7)
CodeModel\FileCodeModel.cs (1)
102internal IGlobalOptionService GlobalOptions
CodeModel\InternalElements\AbstractCodeElement.cs (1)
54internal IGlobalOptionService GlobalOptions
CodeModel\ProjectCodeModelFactory.cs (2)
42public readonly IGlobalOptionService GlobalOptions; 49IGlobalOptionService globalOptions,
Options\AbstractOptionPage.cs (1)
33s_optionStore = new OptionStore(componentModel.GetService<IGlobalOptionService>());
Options\OptionStore.cs (2)
25public readonly IGlobalOptionService GlobalOptions; 39public OptionStore(IGlobalOptionService globalOptions)
Microsoft.VisualStudio.LanguageServices.LiveShare (4)
Client\RemoteDiagnosticListTable.cs (2)
35IGlobalOptionService globalOptions, 49public IGlobalOptionService GlobalOptions
Client\RemoteLanguageServiceWorkspace.cs (2)
89IGlobalOptionService globalOptions, 107private IGlobalOptionService GlobalOptions
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (28)
CSharp\CSharpAddMissingUsingsOnPaste.cs (3)
53var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken); 101var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken); 148var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
CSharp\CSharpArgumentProvider.cs (1)
31var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
CSharp\CSharpAutomaticBraceCompletion.cs (1)
396var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
CSharp\CSharpGoToDefinition.cs (2)
113var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken); 143var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
CSharp\CSharpNavigationBar.cs (1)
130var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
CSharp\CSharpRename.cs (1)
38var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
CSharp\CSharpSourceGenerators.cs (1)
88var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
InProcess\InheritanceMarginInProcess.cs (2)
30var optionService = await GetComponentModelServiceAsync<IGlobalOptionService>(cancellationToken); 54var optionService = await GetComponentModelServiceAsync<IGlobalOptionService>(cancellationToken);
InProcess\StateResetInProcess.cs (3)
52var globalOptions = await GetComponentModelServiceAsync<IGlobalOptionService>(cancellationToken); 75static void ResetOption<T>(IGlobalOptionService globalOptions, Option2<T> option) 80static void ResetPerLanguageOption<T>(IGlobalOptionService globalOptions, PerLanguageOption2<T> option)
InProcess\WorkspaceInProcess.cs (5)
57var globalOptions = await GetComponentModelServiceAsync<IGlobalOptionService>(cancellationToken); 65var globalOptions = await GetComponentModelServiceAsync<IGlobalOptionService>(cancellationToken); 73var globalOptions = await GetComponentModelServiceAsync<IGlobalOptionService>(cancellationToken); 80var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(cancellationToken); 88var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(cancellationToken);
Options\GlobalOptionsTest.cs (1)
37var globalOptions = (GlobalOptionService)await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
VisualBasic\BasicArgumentProvider.cs (1)
30var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
VisualBasic\BasicAutomaticBraceCompletion.cs (2)
33var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken); 207var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
VisualBasic\BasicGoToDefinition.cs (1)
53var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
VisualBasic\BasicLineCommit.cs (1)
147var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
VisualBasic\BasicNavigationBar.cs (1)
105var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
VisualBasic\BasicRename.cs (1)
37var globalOptions = await TestServices.Shell.GetComponentModelServiceAsync<IGlobalOptionService>(HangMitigatingCancellationToken);
Microsoft.VisualStudio.LanguageServices.UnitTests (29)
Diagnostics\DiagnosticTableDataSourceTests.vb (19)
34Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 68Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 89Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 116Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 159Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 209Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 241Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 270Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 302Dim globalOptions = workspace1.GetService(Of IGlobalOptionService)() 335Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 374Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 408Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 442Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 473Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 506Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 537Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 569Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 613Dim globalOptions = workspace.GetService(Of IGlobalOptionService)() 666Dim globalOptions = workspace.GetService(Of IGlobalOptionService)()
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (9)
48Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 120Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 244Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 274Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 326Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 440Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 494Dim globalOptions = workspace.GetService(Of IGlobalOptionService) 640Public ReadOnly Property GlobalOptions As IGlobalOptionService Implements IDiagnosticAnalyzerService.GlobalOptions 642Public Sub New(globalOptions As IGlobalOptionService, Optional data As ImmutableArray(Of DiagnosticData) = Nothing)
Snippets\SnippetTestState.vb (1)
51Dim globalOptions = Workspace.GetService(Of IGlobalOptionService)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
LanguageService\VisualBasicCodeCleanupFixer.vb (1)
24Public Sub New(threadingContext As IThreadingContext, workspace As VisualStudioWorkspaceImpl, vsHierarchyItemManager As IVsHierarchyItemManager, globalOptions As IGlobalOptionService)
LanguageService\VisualBasicCreateServicesOnTextViewConnection.vb (1)
27globalOptions As IGlobalOptionService,
Microsoft.VisualStudio.LanguageServices.Xaml (11)
Implementation\LanguageClient\XamlInProcLanguageClient.cs (1)
43IGlobalOptionService globalOptions,
Implementation\LanguageClient\XamlInProcLanguageClientDisableUX.cs (1)
40IGlobalOptionService globalOptions,
Implementation\LanguageServer\Handler\CodeActions\CodeActionsHandlerProvider.cs (2)
30IGlobalOptionService globalOptions) : base(codeFixService, codeRefactoringService, globalOptions) 43IGlobalOptionService globalOptions) : base(codeFixService, codeRefactoringService, globalOptions)
Implementation\LanguageServer\Handler\Completion\CompletionResolveHandler.cs (2)
34private readonly IGlobalOptionService _globalOptions; 41public CompletionResolveHandler(IGlobalOptionService globalOptions)
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (3)
35private readonly IGlobalOptionService _globalOptions; 39public GoToDefinitionHandler(IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions) 151private static async Task<LSP.Location[]> GetSymbolDefinitionLocationsAsync(XamlSymbolDefinition symbolDefinition, RequestContext context, IMetadataAsSourceFileService metadataAsSourceFileService, IGlobalOptionService globalOptions, CancellationToken cancellationToken)
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (2)
30private readonly IGlobalOptionService _globalOptions; 34public HoverHandler(IGlobalOptionService globalOptions)
Roslyn.VisualStudio.DiagnosticsWindow (8)
OptionPages\ForceLowMemoryMode.cs (2)
18private readonly IGlobalOptionService _globalOptions; 21public ForceLowMemoryMode(IGlobalOptionService globalOptions)
OptionPages\PerformanceLoggersPage.cs (4)
29private IGlobalOptionService _globalOptions; 39_globalOptions = componentModel.GetService<IGlobalOptionService>(); 56public static void SetLoggers(IGlobalOptionService globalOptions, IThreadingContext threadingContext, SolutionServices workspaceServices) 79private static IEnumerable<string> GetLoggerTypes(IGlobalOptionService globalOptions)
VisualStudioDiagnosticsWindowPackage.cs (2)
81var globalOptions = componentModel.GetService<IGlobalOptionService>();
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\RemoteHostClientServiceFactoryTests.cs (2)
42var globalOptions = exportProvider.GetExportedValue<IGlobalOptionService>();