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