9 writes to TabSize
Microsoft.AspNetCore.Razor.Microbenchmarks (1)
Formatting\DocumentFormattingBenchmark.cs (1)
95
TabSize
= 4,
Microsoft.CodeAnalysis.Razor.Workspaces (4)
Formatting\RazorFormattingOptions.cs (3)
35
TabSize
= options.TabSize,
44
TabSize
= options.TabSize,
54
TabSize
= options.TabSize,
Settings\ClientSettings.cs (1)
34
TabSize
= ClientSpaceSettings.IndentSize,
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
81
TabSize
= tabSize,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingDiagnosticValidationPassTest.cs (1)
80
TabSize
= tabSize,
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
81
TabSize
= tabSize,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingDiagnosticValidationPassTest.cs (1)
80
TabSize
= tabSize,
29 references to TabSize
Microsoft.CodeAnalysis.Razor.Workspaces (26)
CodeActions\Razor\GenerateEventHandlerCodeActionResolver.cs (5)
66
var baseIndentation = text.Lines[classLocationLineSpan.StartLinePosition.Line].GetIndentationSize(options.
TabSize
) + options.
TabSize
;
151
var eventHandlerIndentation = FormattingUtilities.GetIndentationString(baseIndentation, options.InsertSpaces, options.
TabSize
);
152
var eventHandlerBodyIndentation = FormattingUtilities.GetIndentationString(baseIndentation + options.
TabSize
, options.InsertSpaces, options.
TabSize
);
CodeActions\Razor\WrapAttributesCodeActionResolver.cs (1)
29
var indentationString = FormattingUtilities.GetIndentationString(actionParams.IndentSize, options.InsertSpaces, options.
TabSize
);
DocumentMapping\RazorEditService_Methods.cs (3)
168
var currentIndentation = line.GetIndentationSize(options.
TabSize
);
184
var newIndentation = options.
TabSize
+ currentIndentation - initialIndentation.GetValueOrDefault();
185
builder.Append(FormattingUtilities.GetIndentationString(Math.Max(0, newIndentation), options.InsertSpaces, options.
TabSize
));
Formatting\CSharpFormatter.cs (1)
343
offset *= (int)context.Options.
TabSize
;
Formatting\FormattingContext.cs (3)
85
var existingIndentationSize = line.GetIndentationSize(Options.
TabSize
);
181
var indentationString = FormattingUtilities.GetIndentationString(indentation, Options.InsertSpaces, Options.
TabSize
);
192
return level * Options.
TabSize
;
Formatting\FormattingUtilities.cs (2)
448
var indentationWidth = formattedLine.GetIndentationSize(context.Options.
TabSize
) + fixedIndentationWidth;
454
return GetIndentationString(indentationWidth, context.Options.InsertSpaces, context.Options.
TabSize
);
Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (1)
162
private readonly int _tabSize = options.
TabSize
;
Formatting\Passes\CSharpOnTypeFormattingPass.cs (1)
844
var effectiveDesiredIndentation = FormattingUtilities.GetIndentationString(indentation, context.Options.InsertSpaces, context.Options.
TabSize
);
Formatting\Passes\HtmlOnTypeFormattingPass.cs (1)
185
var existingIndentationString = FormattingUtilities.GetIndentationString(indentations[i].ExistingIndentationSize, context.Options.InsertSpaces, context.Options.
TabSize
);
Formatting\Passes\RazorFormattingPass.cs (3)
275
directive.GetLinePositionSpan(source).Start.Character, context.Options.InsertSpaces, context.Options.
TabSize
)
360
directive.GetLinePositionSpan(source).Start.Character, context.Options.InsertSpaces, context.Options.
TabSize
);
434
directiveNode.GetRange(source).Start.Character, context.Options.InsertSpaces, context.Options.
TabSize
);
Formatting\RazorFormattingOptions.cs (3)
64
TabSize:
TabSize
,
65
IndentationSize:
TabSize
);
71
TabSize =
TabSize
,
Formatting\SnippetFormatter.cs (2)
41
var csharpLineIndentationSize = line.GetIndentationSize(formattingContext.Options.
TabSize
);
42
var csharpIndentationLevel = csharpLineIndentationSize / formattingContext.Options.
TabSize
;
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
Cohost\Formatting\FormattingLogTest.cs (1)
99
var edits = await GetFormattingEditsAsync(document, htmlEdits, span, options.CodeBlockBraceOnNextLine, options.AttributeIndentStyle, options.InsertSpaces, options.
TabSize
, options.CSharpSyntaxFormattingOptions.AssumeNotNull());
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
691
var edits = await GetFormattingEditsAsync(document, htmlEdits, span: default, options.CodeBlockBraceOnNextLine, attributeIndentStyle, options.InsertSpaces, options.
TabSize
, RazorCSharpSyntaxFormattingOptions.Default);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
691
var edits = await GetFormattingEditsAsync(document, htmlEdits, span: default, options.CodeBlockBraceOnNextLine, attributeIndentStyle, options.InsertSpaces, options.
TabSize
, RazorCSharpSyntaxFormattingOptions.Default);