1 write to Options
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Formatting\FormattingContext.cs (1)
38
Options
= options;
29 references to Options
Microsoft.CodeAnalysis.Razor.Workspaces (29)
Formatting\CSharpFormatter.cs (4)
56
var formattedRoot = RazorCSharpFormattingInteractionService.Format(hostWorkspaceServices, root, context.
Options
.ToIndentationOptions(), context.
Options
.CSharpSyntaxFormattingOptions, cancellationToken);
340
if (!context.
Options
.InsertSpaces)
343
offset *= (int)context.
Options
.TabSize;
Formatting\FormattingContext.cs (5)
85
var existingIndentationSize = line.GetIndentationSize(
Options
.TabSize);
181
var indentationString = FormattingUtilities.GetIndentationString(indentation,
Options
.InsertSpaces,
Options
.TabSize);
192
return level *
Options
.TabSize;
244
Options
,
Formatting\FormattingUtilities.cs (3)
448
var indentationWidth = formattedLine.GetIndentationSize(context.
Options
.TabSize) + fixedIndentationWidth;
454
return GetIndentationString(indentationWidth, context.
Options
.InsertSpaces, context.
Options
.TabSize);
Formatting\Passes\CSharpFormattingPass.cs (2)
43
var generatedDocument = CSharpDocumentGenerator.Generate(changedContext.CodeDocument, csharpSyntaxRoot, context.
Options
, _documentMappingService);
48
var formattedCSharpText = await FormatCSharpAsync(generatedCSharpText, context.
Options
, cancellationToken).ConfigureAwait(false);
Formatting\Passes\CSharpOnTypeFormattingPass.cs (4)
70
context.
Options
.ToIndentationOptions(),
73
context.
Options
.CSharpSyntaxFormattingOptions,
844
var effectiveDesiredIndentation = FormattingUtilities.GetIndentationString(indentation, context.
Options
.InsertSpaces, context.
Options
.TabSize);
Formatting\Passes\HtmlOnTypeFormattingPass.cs (2)
185
var existingIndentationString = FormattingUtilities.GetIndentationString(indentations[i].ExistingIndentationSize, context.
Options
.InsertSpaces, context.
Options
.TabSize);
Formatting\Passes\RazorFormattingPass.cs (7)
260
var forceNewLine = context.
Options
.CodeBlockBraceOnNextLine &&
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\SnippetFormatter.cs (2)
41
var csharpLineIndentationSize = line.GetIndentationSize(formattingContext.
Options
.TabSize);
42
var csharpIndentationLevel = csharpLineIndentationSize / formattingContext.
Options
.TabSize;