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