30 references to LanguageServices
Microsoft.CodeAnalysis.CSharp.EditorFeatures (9)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
110var formatter = document.LanguageServices.GetRequiredService<ISyntaxFormattingService>(); 325var formattingOptions = args.SubjectBuffer.GetSyntaxFormattingOptions(EditorOptionsService, document.LanguageServices, explicitFormat: false);
Formatting\CSharpFormattingInteractionService.cs (5)
95var options = textBuffer.GetSyntaxFormattingOptions(_editorOptionsService, parsedDocument.LanguageServices, explicitFormat: true); 106var options = textBuffer.GetSyntaxFormattingOptions(_editorOptionsService, parsedDocument.LanguageServices, explicitFormat: true); 107var service = parsedDocument.LanguageServices.GetRequiredService<ISyntaxFormattingService>(); 117var service = parsedDocument.LanguageServices.GetRequiredService<ISyntaxFormattingService>(); 121var indentationOptions = textBuffer.GetIndentationOptions(_editorOptionsService, parsedDocument.LanguageServices, explicitFormat: false);
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (1)
90var indentationOptions = subjectBuffer.GetIndentationOptions(_editorOptionsService, parsedDocument.LanguageServices, explicitFormat: false);
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
268var indentationOptions = textBuffer.GetIndentationOptions(_editorOptionsService, documentBeforePaste.LanguageServices, explicitFormat: false);
Microsoft.CodeAnalysis.CSharp.Features (10)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
159var indentationService = document.LanguageServices.GetRequiredService<IIndentationService>();
ConvertNamespaceTransform.cs (1)
113var indentationService = document.LanguageServices.GetRequiredService<IIndentationService>();
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
290var indenter = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
76var indentationService = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
Snippets\CSharpConstructorSnippetProvider.cs (1)
70var indentationService = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
Snippets\CSharpElseSnippetProvider.cs (1)
92var indentationService = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
79var indentationService = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
Snippets\CSharpIfSnippetProvider.cs (1)
56var indentationService = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
Snippets\CSharpWhileLoopSnippetProvider.cs (1)
56var indentationService = parsedDocument.LanguageServices.GetRequiredService<IIndentationService>();
SplitStringLiteral\StringSplitter.cs (1)
136var indentationService = Document.LanguageServices.GetRequiredService<IIndentationService>();
Microsoft.CodeAnalysis.EditorFeatures (5)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (1)
145var formattingOptions = args.SubjectBuffer.GetSyntaxFormattingOptions(EditorOptionsService, parsedDocument.LanguageServices, explicitFormat: false);
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (2)
131var indentationOptions = SubjectBuffer.GetIndentationOptions(_editorOptionsService, contextAfterStart.Document.LanguageServices, explicitFormat: false); 289var indentationOptions = SubjectBuffer.GetIndentationOptions(_editorOptionsService, context.Document.LanguageServices, explicitFormat: false);
SplitComment\SplitCommentCommandHandler.cs (2)
154var syntaxKinds = document.LanguageServices.GetRequiredService<ISyntaxKindsService>(); 159var splitCommentService = document.LanguageServices.GetRequiredService<ISplitCommentService>();
Microsoft.CodeAnalysis.Features (3)
BraceCompletion\AbstractBraceCompletionService.cs (2)
86var syntaxFactsService = document.LanguageServices.GetRequiredService<ISyntaxFactsService>(); 128var syntaxFactsService = context.Document.LanguageServices.GetRequiredService<ISyntaxFactsService>();
Formatting\FormattingRuleUtilities.cs (1)
26return rules.AddRange(Formatter.GetDefaultFormattingRules(document.LanguageServices));
Microsoft.CodeAnalysis.Workspaces (3)
IIndentationService.cs (2)
50var syntaxGenerator = document.LanguageServices.GetRequiredService<SyntaxGeneratorInternal>(); 58var indenter = document.LanguageServices.GetRequiredService<IIndentationService>();
ParsedDocument.cs (1)
32public SolutionServices SolutionServices => LanguageServices.SolutionServices;