28 references to LanguageServices
Microsoft.CodeAnalysis.CSharp.EditorFeatures (9)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
101var formatter = document.LanguageServices.GetRequiredService<ISyntaxFormattingService>(); 317var formattingOptions = args.SubjectBuffer.GetSyntaxFormattingOptions(EditorOptionsService, fallbackOptions, document.LanguageServices, explicitFormat: false);
Formatting\CSharpFormattingInteractionService.cs (5)
83var options = textBuffer.GetSyntaxFormattingOptions(_editorOptionsService, document.Project.GetFallbackAnalyzerOptions(), parsedDocument.LanguageServices, explicitFormat: true); 94var options = textBuffer.GetSyntaxFormattingOptions(_editorOptionsService, document.Project.GetFallbackAnalyzerOptions(), parsedDocument.LanguageServices, explicitFormat: true); 95var service = parsedDocument.LanguageServices.GetRequiredService<ISyntaxFormattingService>(); 105var service = parsedDocument.LanguageServices.GetRequiredService<ISyntaxFormattingService>(); 109var indentationOptions = textBuffer.GetIndentationOptions(_editorOptionsService, document.Project.GetFallbackAnalyzerOptions(), parsedDocument.LanguageServices, explicitFormat: false);
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (1)
83var indentationOptions = subjectBuffer.GetIndentationOptions(_editorOptionsService, document.Project.GetFallbackAnalyzerOptions(), parsedDocument.LanguageServices, explicitFormat: false);
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
252var indentationOptions = textBuffer.GetIndentationOptions(_editorOptionsService, fallbackOptions, documentBeforePaste.LanguageServices, explicitFormat: false);
Microsoft.CodeAnalysis.CSharp.Features (6)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
171var indentationService = document.LanguageServices.GetRequiredService<IIndentationService>();
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
202var indenter = document.LanguageServices.GetRequiredService<IIndentationService>();
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
161var indenter = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
Snippets\CSharpSnippetHelpers.cs (1)
37var indentationService = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
SplitStringLiteral\StringSplitter.cs (1)
124var indentationService = Document.LanguageServices.GetRequiredService<IIndentationService>();
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
102var indentationService = document.LanguageServices.GetRequiredService<IIndentationService>();
Microsoft.CodeAnalysis.EditorFeatures (5)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (1)
146var formattingOptions = args.SubjectBuffer.GetSyntaxFormattingOptions(EditorOptionsService, document.Project.GetFallbackAnalyzerOptions(), parsedDocument.LanguageServices, explicitFormat: false);
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (2)
140var indentationOptions = SubjectBuffer.GetIndentationOptions(EditorOptionsService, document.Project.GetFallbackAnalyzerOptions(), contextAfterStart.Document.LanguageServices, explicitFormat: false); 319var indentationOptions = SubjectBuffer.GetIndentationOptions(EditorOptionsService, context.FallbackOptions, context.Document.LanguageServices, explicitFormat: false);
SplitComment\SplitCommentCommandHandler.cs (2)
140var syntaxKinds = document.LanguageServices.GetRequiredService<ISyntaxKindsService>(); 145var splitCommentService = document.LanguageServices.GetRequiredService<ISplitCommentService>();
Microsoft.CodeAnalysis.Features (4)
BraceCompletion\AbstractBraceCompletionService.cs (2)
83var syntaxFactsService = document.LanguageServices.GetRequiredService<ISyntaxFactsService>(); 125var syntaxFactsService = context.Document.LanguageServices.GetRequiredService<ISyntaxFactsService>();
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (1)
373var syntaxFacts = document.LanguageServices.GetRequiredService<ISyntaxFactsService>();
Formatting\FormattingRuleUtilities.cs (1)
26return rules.AddRange(Formatter.GetDefaultFormattingRules(document.LanguageServices));
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (1)
104var helpers = document.LanguageServices.GetRequiredService<IRefactoringHelpersService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (2)
49var syntaxGenerator = document.LanguageServices.GetRequiredService<SyntaxGeneratorInternal>(); 57var indenter = document.LanguageServices.GetRequiredService<IIndentationService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
29public SolutionServices SolutionServices => LanguageServices.SolutionServices;