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