2 implementations of ISyntaxFormattingService
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Formatting\CSharpSyntaxFormattingService.cs (1)
28internal sealed class CSharpSyntaxFormattingService : CSharpSyntaxFormatting, ISyntaxFormattingService
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Formatting\VisualBasicSyntaxFormattingService.vb (1)
17Implements ISyntaxFormattingService
55 references to ISyntaxFormattingService
Microsoft.CodeAnalysis.CSharp.EditorFeatures (6)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
110var formatter = document.LanguageServices.GetRequiredService<ISyntaxFormattingService>();
Formatting\CSharpFormattingInteractionService.cs (4)
107var service = parsedDocument.LanguageServices.GetRequiredService<ISyntaxFormattingService>(); 117var service = parsedDocument.LanguageServices.GetRequiredService<ISyntaxFormattingService>();
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Formatting\CSharpSyntaxFormattingService.cs (3)
32[ExportLanguageServiceFactory(typeof(ISyntaxFormattingService), LanguageNames.CSharp), Shared] 328var service = _services.GetRequiredService<ISyntaxFormattingService>();
Microsoft.CodeAnalysis.EditorFeatures (2)
Shared\Extensions\ITextSnapshotExtensions.cs (2)
44var formatter = document.GetRequiredLanguageService<ISyntaxFormattingService>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Formatting\CoreFormatterTestsBase.cs (4)
201var formattingService = document.GetRequiredLanguageService<ISyntaxFormattingService>(); 289var formattingService = workspace.Services.GetLanguageServices(node.Language).GetRequiredService<ISyntaxFormattingService>();
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
RazorCSharpFormattingInteractionService.cs (2)
42var formattingService = document.GetRequiredLanguageService<ISyntaxFormattingService>();
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\Options\IdeAnalyzerOptionsStorage.cs (1)
23var supportsLanguageSpecificOptions = languageServices.GetService<ISyntaxFormattingService>() != null;
Handler\Formatting\FormatDocumentOnTypeHandler.cs (2)
58var formattingService = document.Project.Services.GetRequiredService<ISyntaxFormattingService>();
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Formatting\VisualBasicSyntaxFormattingService.vb (4)
14<ExportLanguageService(GetType(ISyntaxFormattingService), LanguageNames.VisualBasic), [Shared]> 24Public Function ShouldFormatOnTypedCharacter(document As ParsedDocument, typedChar As Char, caretPosition As Integer, cancellationToken As CancellationToken) As Boolean Implements ISyntaxFormattingService.ShouldFormatOnTypedCharacter 28Public Function GetFormattingChangesOnTypedCharacter(document As ParsedDocument, caretPosition As Integer, indentationOptions As IndentationOptions, cancellationToken As CancellationToken) As ImmutableArray(Of TextChange) Implements ISyntaxFormattingService.GetFormattingChangesOnTypedCharacter 32Public Function GetFormattingChangesOnPaste(document As ParsedDocument, textSpan As TextSpan, options As SyntaxFormattingOptions, cancellationToken As CancellationToken) As ImmutableArray(Of TextChange) Implements ISyntaxFormattingService.GetFormattingChangesOnPaste
Microsoft.CodeAnalysis.Workspaces (17)
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (4)
30var formatter = document.GetRequiredLanguageService<ISyntaxFormattingService>(); 42var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(root.Language);
Formatting\Formatter.cs (11)
40=> languageServices.GetService<ISyntaxFormattingService>()?.GetDefaultFormattingRules() ?? ImmutableArray<AbstractFormattingRule>.Empty; 244var languageFormatter = languageServices.GetService<ISyntaxFormattingService>(); 257var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(node.Language); 315var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(node.Language); 321var syntaxFormattingService = workspace.Services.GetRequiredLanguageService<ISyntaxFormattingService>(language); 333var syntaxFormattingService = document.GetLanguageService<ISyntaxFormattingService>();
SyntaxFormattingOptions.cs (2)
48=> languageServices.GetRequiredService<ISyntaxFormattingService>().DefaultOptions; 64=> languageServices.GetRequiredService<ISyntaxFormattingService>().GetFormattingOptions(options, fallbackOptions);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Formatting\FormattingTestBase.cs (2)
56var formattingService = document.GetRequiredLanguageService<ISyntaxFormattingService>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
FormattingTests.cs (4)
38var service = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService<ISyntaxFormattingService>(); 65var service = workspace.Services.GetLanguageServices(LanguageNames.VisualBasic).GetService<ISyntaxFormattingService>();
Microsoft.VisualStudio.LanguageServices (6)
LanguageService\AbstractLanguageService`2.cs (2)
169var formatter = this.Workspace.Services.GetLanguageServices(RoslynLanguageName).GetService<ISyntaxFormattingService>();
LanguageService\AbstractLanguageService`2.IVsLanguageTextOps.cs (2)
72var formatter = document.GetRequiredLanguageService<ISyntaxFormattingService>();
Venus\ContainedDocument.cs (2)
813var formatter = document.GetRequiredLanguageService<ISyntaxFormattingService>();
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Options\AbstractOptionPreviewViewModel.cs (2)
139var formattingService = document.GetRequiredLanguageService<ISyntaxFormattingService>();