1 instantiation of LanguageServices
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\HostLanguageServices.cs (1)
43LanguageServices = new LanguageServices(this);
122 references to LanguageServices
Microsoft.CodeAnalysis.CodeStyle.Fixes (19)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
24public static AddImportPlacementOptions GetAddImportPlacementOptions(this IOptionsReader options, Host.LanguageServices languageServices, bool? allowInHiddenRegions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
18public static CodeCleanupOptions GetCodeCleanupOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 33public static CodeCleanupOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
31LanguageServices languageServices) 37public LanguageServices LanguageServices { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (1)
32public static CleanCodeGenerationOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeAndImportGenerationOptionsProviders.cs (1)
12internal static CodeAndImportGenerationOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (4)
18public static CodeGenerationOptions GetCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices) 21public static CodeAndImportGenerationOptions GetCodeAndImportGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 28public static CleanCodeGenerationOptions GetCleanCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 50public static CodeGenerationOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (2)
14public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SyntaxFormattingOptions GetDefault(Host.LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
12public static IndentationOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\OptionsProvider.cs (2)
16ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken); 23public ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (2)
14public static SimplifierOptions GetSimplifierOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SimplifierOptions GetDefault(Host.LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
32public LanguageServices LanguageServices => HostLanguageServices.LanguageServices;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
28internal sealed partial class CSharpCodeGenerationService(LanguageServices languageServices)
Microsoft.CodeAnalysis.CSharp.Features (3)
LanguageServices\CSharpSymbolDisplayService.cs (1)
10internal sealed partial class CSharpSymbolDisplayService(Host.LanguageServices services) : AbstractSymbolDisplayService(services)
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
24Host.LanguageServices languageServices,
QuickInfo\CSharpQuickInfoSevice.cs (1)
28internal CSharpQuickInfoService(LanguageServices services)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Formatting\CSharpSyntaxFormattingService.cs (2)
26internal sealed class CSharpSyntaxFormattingService(LanguageServices languageServices) 29private readonly LanguageServices _services = languageServices;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
28internal sealed partial class CSharpCodeGenerationService(LanguageServices languageServices)
Microsoft.CodeAnalysis.EditorFeatures (10)
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
173ITextBuffer buffer, int caretPoint, SourceText text, LanguageServices services, CompletionRules rules)
Options\LegacyGlobalOptionsWorkspaceService.cs (1)
68public SyntaxFormattingOptions GetSyntaxFormattingOptions(LanguageServices languageServices)
Options\TextBufferOptionProviders.cs (6)
20public static DocumentationCommentOptions GetDocumentationCommentOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, LanguageServices languageServices) 43public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool explicitFormat) 46private static SyntaxFormattingOptions GetSyntaxFormattingOptionsImpl(ITextBuffer textBuffer, IEditorOptions editorOptions, StructuredAnalyzerConfigOptions fallbackOptions, IIndentationManagerService indentationManager, LanguageServices languageServices, bool explicitFormat) 55public static IndentationOptions GetIndentationOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool explicitFormat) 68public static AddImportPlacementOptions GetAddImportPlacementOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool allowInHiddenRegions) 75public static CodeCleanupOptions GetCodeCleanupOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool explicitFormat, bool allowImportsInHiddenRegions)
Shared\Extensions\HostWorkspaceServicesExtensions.cs (2)
19public static CodeAnalysis.Host.LanguageServices? GetProjectServices( 25public static CodeAnalysis.Host.LanguageServices? GetProjectServices(
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Formatting\AbstractNewDocumentFormattingServiceTests.cs (1)
31var languageServices = document.Project.Services;
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Completion\FSharpCompletionProviderBase.cs (1)
17internal sealed override bool ShouldTriggerCompletion(Host.LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passthroughOptions)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmnisharpLegacyGlobalOptionsWorkspaceService.cs (1)
59public SyntaxFormattingOptions GetSyntaxFormattingOptions(LanguageServices languageServices)
Microsoft.CodeAnalysis.Features (16)
AddImport\AddImportOptions.cs (1)
23public static AddImportOptions GetAddImportOptions(this IOptionsReader options, LanguageServices languageServices, SymbolSearchOptions searchOptions, bool allowImportsInHiddenRegions)
ChangeSignature\AbstractChangeSignatureService.cs (1)
971protected ImmutableArray<SyntaxTrivia> GetPermutedDocCommentTrivia(SyntaxNode node, ImmutableArray<SyntaxNode> permutedParamNodes, LanguageServices services, LineFormattingOptions options)
Completion\CommonCompletionProvider.cs (1)
42internal override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
Completion\CompletionProvider.cs (1)
47internal virtual bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
Completion\CompletionService.cs (1)
133LanguageServices languageServices,
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (2)
60protected ImmutableArray<IEmbeddedLanguage> GetLanguageProviders(Host.LanguageServices? languageServices) 73internal sealed override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionProvider.cs (1)
21internal sealed override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
86protected readonly LanguageServices LanguageServices; 93LanguageServices languageServices,
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.cs (2)
16protected readonly LanguageServices LanguageServices; 18protected AbstractSymbolDisplayService(LanguageServices services)
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
193var languageServices = services.GetLanguageServices(semanticModel.Language);
QuickInfo\QuickInfoServiceWithProviders.cs (2)
22private readonly LanguageServices _services; 25protected QuickInfoServiceWithProviders(LanguageServices services)
Workspace\MiscellaneousFileUtilities.cs (1)
30var languageServices = services.GetLanguageServices(languageInformation.LanguageName);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Options\TestOptionsProvider.cs (1)
14public ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Options\ExtractMethodOptionsStorage.cs (1)
14public static ExtractMethodGenerationOptions GetExtractMethodGenerationOptions(this IGlobalOptionService globalOptions, LanguageServices languageServices)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Completion\CompletionFeaturesTests.cs (2)
583Project project, LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, 876Project project, LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger,
Completion\CompletionResolveTests.cs (1)
511internal override bool ShouldTriggerCompletion(Project project, LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CodeAnalysis.Completion.CompletionOptions options, OptionSet passthroughOptions, ImmutableHashSet<string> roles = null)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\ClientOptionsProvider.cs (2)
19public async ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken) 26private Task<TOptions> GetRemoteOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
Services\SemanticSearch\RemoteSemanticSearchService.cs (1)
31public ValueTask<ClassificationOptions> GetOptionsAsync(CodeAnalysis.Host.LanguageServices languageServices, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
23Public Sub New(languageServices As LanguageServices)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (1)
32languageServices As Host.LanguageServices,
LanguageServices\VisualBasicSymbolDisplayService.vb (1)
15Public Sub New(provider As Host.LanguageServices)
QuickInfo\VisualBasicQuickInfoService.vb (1)
29Public Sub New(services As Host.LanguageServices)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
23Public Sub New(languageServices As LanguageServices)
Microsoft.CodeAnalysis.Workspaces (52)
Classification\Classifier.cs (2)
78var projectServices = services.GetLanguageServices(semanticModel.Language); 114LanguageServices languageServices, SemanticModel semanticModel, TextSpan textSpan, ClassificationOptions options,
ExtractMethod\ExtractMethodOptions.cs (1)
27public static ExtractMethodGenerationOptions GetDefault(LanguageServices languageServices)
Formatting\Formatter.cs (1)
37internal static ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules(LanguageServices languageServices)
Options\ILegacyGlobalOptionsWorkspaceService.cs (1)
30SyntaxFormattingOptions GetSyntaxFormattingOptions(LanguageServices languageServices);
Rename\ConflictEngine\ConflictResolver.cs (1)
156var languageServices = solution.Services.GetLanguageServices(language);
Shared\Extensions\ITypeSymbolExtensions.cs (1)
149var provider = services.GetLanguageServices(typeSymbol.Language);
Shared\Extensions\SemanticModelExtensions.cs (1)
76var languageServices = services.GetLanguageServices(token.Language);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
24public static AddImportPlacementOptions GetAddImportPlacementOptions(this IOptionsReader options, Host.LanguageServices languageServices, bool? allowInHiddenRegions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
18public static CodeCleanupOptions GetCodeCleanupOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 33public static CodeCleanupOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
31LanguageServices languageServices) 37public LanguageServices LanguageServices { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (1)
32public static CleanCodeGenerationOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeAndImportGenerationOptionsProviders.cs (1)
12internal static CodeAndImportGenerationOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (4)
18public static CodeGenerationOptions GetCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices) 21public static CodeAndImportGenerationOptions GetCodeAndImportGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 28public static CleanCodeGenerationOptions GetCleanCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 50public static CodeGenerationOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (2)
14public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SyntaxFormattingOptions GetDefault(Host.LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
12public static IndentationOptions GetDefault(LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\OptionsProvider.cs (2)
16ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken); 23public ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (2)
14public static SimplifierOptions GetSimplifierOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SimplifierOptions GetDefault(Host.LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
32public LanguageServices LanguageServices => HostLanguageServices.LanguageServices;
Workspace\CommandLineProject.cs (1)
28var languageServices = workspace.Services.SolutionServices.GetLanguageServices(language);
Workspace\Host\HostLanguageServices.cs (1)
38public LanguageServices LanguageServices { get; }
Workspace\Host\SolutionServices.cs (2)
55/// Gets the <see cref="LanguageServices"/> for the language name. 58public LanguageServices GetLanguageServices(string languageName)
Workspace\Solution\DocumentState.cs (7)
31public LanguageServices LanguageServices { get; } 40LanguageServices languageServices, 57LanguageServices languageServices, 120LanguageServices languageServices, 134LanguageServices languageServices, 150LanguageServices languageServices, 164LanguageServices languageServices,
Workspace\Solution\DocumentState_LinkedFileReuse.cs (4)
102LanguageServices languageServices, 129LanguageServices languageServices, 235LanguageServices languageServices, 258LanguageServices languageServices,
Workspace\Solution\Project.cs (1)
109public LanguageServices Services => State.LanguageServices;
Workspace\Solution\ProjectState.cs (5)
27public readonly LanguageServices LanguageServices; 69LanguageServices languageServices, 91public ProjectState(LanguageServices languageServices, ProjectInfo projectInfo, StructuredAnalyzerConfigOptions fallbackAnalyzerOptions) 655public string Language => LanguageServices.Language; 816LanguageServices.GetRequiredService<ISyntaxTreeFactoryService>().OptionsDifferOnlyByPreprocessorDirectives(options, ParseOptions);
Workspace\Solution\SolutionState.cs (1)
355var languageServices = Services.GetLanguageServices(language);
Workspace\Solution\SourceGeneratedDocumentState.cs (3)
48LanguageServices languageServices, 65LanguageServices languageServices, 102LanguageServices languageServices,
Microsoft.VisualStudio.LanguageServices (1)
Snippets\SnippetExpansionClient.cs (1)
1068var languageServices = documentWithImports.Project.Services;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
485public ValueTask<ClassificationOptions> GetOptionsAsync(Microsoft.CodeAnalysis.Host.LanguageServices languageServices, CancellationToken cancellationToken)