28 references to Language
Microsoft.CodeAnalysis.EditorFeatures (4)
Options\TextBufferOptionProviders.cs (3)
27return optionsProvider.GlobalOptions.GetDocumentationCommentOptions(lineFormattingOptions, languageServices.Language); 66AutoFormattingOptions = optionsProvider.GlobalOptions.GetAutoFormattingOptions(languageServices.Language), 68IndentStyle = optionsProvider.GlobalOptions.GetOption(IndentationOptionsStorage.SmartIndent, languageServices.Language)
Shared\Extensions\HostWorkspaceServicesExtensions.cs (1)
46workspace.Services.SolutionServices.GetProjectServices(buffer.ContentType)?.Language : null;
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
CodeActions\OmniSharpCodeFixContextFactory.cs (1)
56new DelegatingCodeActionOptionsProvider(languageServices => optionsProvider(languageServices.Language).GetCodeActionOptions(languageServices))),
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\Extensions.cs (1)
106if (IsWpfDesignTimeOnlyDocument(textDocumentState.FilePath, documentState.LanguageServices.Language))
QuickInfo\QuickInfoServiceWithProviders.cs (1)
39.Where(lz => lz.Metadata.Language == _services.Language))
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Features\Options\CodeActionOptionsStorage.cs (7)
30SearchOptions = globalOptions.GetSymbolSearchOptions(languageServices.Language), 31ImplementTypeOptions = globalOptions.GetImplementTypeOptions(languageServices.Language), 32ExtractMethodOptions = globalOptions.GetExtractMethodOptions(languageServices.Language), 33HideAdvancedMembers = globalOptions.GetOption(CompletionOptionsStorage.HideAdvancedMembers, languageServices.Language), 34WrappingColumn = globalOptions.GetOption(WrappingColumn, languageServices.Language), 35ConditionalExpressionWrappingLength = globalOptions.GetOption(ConditionalExpressionWrappingLength, languageServices.Language), 41return new DelegatingCodeActionOptionsProvider(languageService => ImmutableInterlocked.GetOrAdd(ref cache, languageService.Language, (_, options) => GetCodeActionOptions(options, languageService), globalOptions));
Features\Options\ExtractMethodOptionsStorage.cs (2)
28ExtractOptions = globalOptions.GetExtractMethodOptions(languageServices.Language), 30LineFormattingOptions = globalOptions.GetLineFormattingOptions(languageServices.Language)
Features\Options\GlobalCodeActionOptionsProvider.cs (3)
49=> ValueTaskFactory.FromResult(_globalOptions.GetLineFormattingOptions(languageServices.Language)); 64=> ValueTaskFactory.FromResult(_globalOptions.GetOrganizeImportsOptions(languageServices.Language)); 73=> ValueTaskFactory.FromResult(_globalOptions.GetNamingStylePreferences(languageServices.Language));
Features\Options\IdeAnalyzerOptionsStorage.cs (1)
20var language = languageServices.Language;
Features\Options\ImplementTypeOptionsStorage.cs (1)
20=> new(globalOptions.GetImplementTypeOptions(languageServices.Language),
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\ClientOptionProviders.cs (2)
37var lazyOptions = ImmutableInterlocked.GetOrAdd(ref _cache, languageServices.Language, _ => new AsyncLazy<TOptions>(GetRemoteOptions, cacheResult: true)); 41=> _callback(_callbackId, languageServices.Language, cancellationToken).AsTask();
Microsoft.CodeAnalysis.Workspaces (3)
Options\LegacyGlobalCodeActionOptionsWorkspaceService.cs (2)
45=> ValueTaskFactory.FromResult(_options.GetLineFormattingOptions(languageServices.Language, fallbackOptions: null)); 72=> ValueTaskFactory.FromResult(_options.GetOption(NamingStyleOptions.NamingPreferences, languageServices.Language));
Workspace\Solution\ProjectState.cs (1)
553public string Language => LanguageServices.Language;
Microsoft.VisualStudio.LanguageServices (2)
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (2)
315var language = languageService.Language; 382languageOpt: languageServices?.Count == 1 ? languageServices.Single().Language : null,