48 references to AttributeIndentStyle
Microsoft.CodeAnalysis.Razor.Workspaces (11)
Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (4)
163private readonly AttributeIndentStyle _attributeIndentStyle = options.AttributeIndentStyle; 768if (_attributeIndentStyle == AttributeIndentStyle.IndentByOne) 773else if (_attributeIndentStyle == AttributeIndentStyle.IndentByTwo) 778else if (_attributeIndentStyle == AttributeIndentStyle.AlignWithFirst)
Formatting\RazorFormattingOptions.cs (5)
21public AttributeIndentStyle AttributeIndentStyle { get; init; } = AttributeIndentStyle.AlignWithFirst; 31public static RazorFormattingOptions From(FormattingOptions options, bool codeBlockBraceOnNextLine, AttributeIndentStyle attributeIndentStyle) 40public static RazorFormattingOptions From(FormattingOptions options, bool codeBlockBraceOnNextLine, AttributeIndentStyle attributeIndentStyle, RazorCSharpSyntaxFormattingOptions csharpSyntaxFormattingOptions) 50public static RazorFormattingOptions From(FormattingOptions options, bool codeBlockBraceOnNextLine, AttributeIndentStyle attributeIndentStyle, RazorCSharpSyntaxFormattingOptions csharpSyntaxFormattingOptions, bool fromPaste)
Settings\ClientSettings.cs (2)
60[property: JsonPropertyName("attributeIndentStyle")] AttributeIndentStyle AttributeIndentStyle, 72AttributeIndentStyle: AttributeIndentStyle.AlignWithFirst,
Microsoft.CodeAnalysis.Remote.Razor.UnitTests (2)
ClientSettingsJsonSerializationTest.cs (2)
26AttributeIndentStyle: AttributeIndentStyle.IndentByOne, 62Assert.Equal((int)AttributeIndentStyle.IndentByOne, attributeIndentStyle.GetInt32());
Microsoft.VisualStudio.LanguageServices.Razor (1)
LanguageClient\Options\OptionsStorage.cs (1)
107GetEnum(SettingsNames.AttributeIndentStyle, AttributeIndentStyle.AlignWithFirst),
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (15)
Settings\ClientSettingsManagerTest.cs (1)
93AttributeIndentStyle: AttributeIndentStyle.AlignWithFirst,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTest.cs (6)
10665attributeIndentStyle: AttributeIndentStyle.IndentByOne); 10731attributeIndentStyle: AttributeIndentStyle.IndentByTwo); 11407attributeIndentStyle: AttributeIndentStyle.IndentByOne); 11427attributeIndentStyle: AttributeIndentStyle.IndentByTwo); 12128attributeIndentStyle: AttributeIndentStyle.IndentByOne); 12193attributeIndentStyle: AttributeIndentStyle.IndentByTwo);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTestBase.cs (3)
35AttributeIndentStyle attributeIndentStyle = AttributeIndentStyle.AlignWithFirst, 111private protected async Task<TextEdit[]?> GetFormattingEditsAsync(TextDocument document, TextEdit[]? htmlEdits, TextSpan span, bool codeBlockBraceOnNextLine, AttributeIndentStyle attributeIndentStyle, bool insertSpaces, int tabSize, RazorCSharpSyntaxFormattingOptions csharpSyntaxFormattingOptions)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (5)
593[InlineData(AttributeIndentStyle.AlignWithFirst)] 594[InlineData(AttributeIndentStyle.IndentByOne)] 595internal Task HtmlAttributes_FirstNotOnSameLine(AttributeIndentStyle attributeIndentStyle) 650AttributeIndentStyle.IndentByTwo); 679private async Task RunAttributeIndentStyleTestAsync(string input, string expected, AttributeIndentStyle attributeIndentStyle)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (19)
CohostConfigurationChangedServiceTest.cs (4)
23Assert.Equal(AttributeIndentStyle.AlignWithFirst, settings.AttributeIndentStyle); 33Assert.Equal(AttributeIndentStyle.IndentByOne, updatedSettings.AttributeIndentStyle); 53Assert.Equal(AttributeIndentStyle.IndentByOne, updatedSettings.AttributeIndentStyle); 65Assert.Equal(AttributeIndentStyle.AlignWithFirst, updatedSettings2.AttributeIndentStyle);
RemoteClientSettingsServiceTest.cs (1)
69AttributeIndentStyle: AttributeIndentStyle.IndentByOne,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTest.cs (6)
10665attributeIndentStyle: AttributeIndentStyle.IndentByOne); 10731attributeIndentStyle: AttributeIndentStyle.IndentByTwo); 11407attributeIndentStyle: AttributeIndentStyle.IndentByOne); 11427attributeIndentStyle: AttributeIndentStyle.IndentByTwo); 12128attributeIndentStyle: AttributeIndentStyle.IndentByOne); 12193attributeIndentStyle: AttributeIndentStyle.IndentByTwo);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTestBase.cs (3)
35AttributeIndentStyle attributeIndentStyle = AttributeIndentStyle.AlignWithFirst, 111private protected async Task<TextEdit[]?> GetFormattingEditsAsync(TextDocument document, TextEdit[]? htmlEdits, TextSpan span, bool codeBlockBraceOnNextLine, AttributeIndentStyle attributeIndentStyle, bool insertSpaces, int tabSize, RazorCSharpSyntaxFormattingOptions csharpSyntaxFormattingOptions)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (5)
593[InlineData(AttributeIndentStyle.AlignWithFirst)] 594[InlineData(AttributeIndentStyle.IndentByOne)] 595internal Task HtmlAttributes_FirstNotOnSameLine(AttributeIndentStyle attributeIndentStyle) 650AttributeIndentStyle.IndentByTwo); 679private async Task RunAttributeIndentStyleTestAsync(string input, string expected, AttributeIndentStyle attributeIndentStyle)