1 write to Logger
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Formatting\FormattingContext.cs (1)
39Logger = logger;
29 references to Logger
Microsoft.CodeAnalysis.Razor.Workspaces (29)
Formatting\FormattingContext.cs (1)
245Logger,
Formatting\FormattingUtilities.cs (1)
691context.Logger?.LogMessage($"Ran out of {label} lines at index {lineIndex} of {text.Lines.Count} (other side: {otherLineIndex} of {otherLineCount})");
Formatting\Passes\CSharpFormattingPass.cs (7)
36context.Logger?.LogObject("SourceMappings", changedContext.CodeDocument.GetRequiredCSharpDocument().SourceMappingsSortedByGenerated); 46context.Logger?.LogSourceText("FormattingDocument", generatedCSharpText); 47context.Logger?.LogObject("FormattingDocumentLineInfo", generatedDocument.LineInfo); 49context.Logger?.LogSourceText("FormattedFormattingDocument", formattedCSharpText); 95context.Logger?.LogMessage($"Skipping a change that would have overlapped an existing change, starting at {start} for {length} chars, overlapping a change at {formattingChanges[iChanges].Span}. iFormatted={iFormatted}, iChanges={iChanges}"); 104context.Logger?.LogObject("FinalFormattingChanges", finalFormattingChanges); 106context.Logger?.LogSourceText("FinalFormattedDocument", changedText);
Formatting\Passes\CSharpOnTypeFormattingPass.cs (9)
102context.Logger?.LogSourceText("OriginalCSharp", csharpText); 106context.Logger?.LogSourceText("FormattedCSharp", originalTextWithChanges); 122context.Logger?.LogSourceText("OriginalRazor", originalText); 124context.Logger?.LogMessage($"Source Mappings:\r\n{RenderSourceMappings(context.CodeDocument)}"); 128context.Logger?.LogSourceText("AfterCSharpChanges", formattedText); 142context.Logger?.LogSourceText("AfterCleanupDocument", cleanedText); 199context.Logger?.LogSourceText("AfterAdjustIndentationAsync", cleanedText); 627context.Logger?.LogMessage($"Don't care about line: {line.ToString()}"); 679context.Logger?.LogMessage($"Couldn't map line: {line.ToString()}");
Formatting\Passes\HtmlFormattingPass.cs (7)
35context.Logger?.LogSourceText("HtmlSourceText", context.CodeDocument.GetHtmlSourceText(cancellationToken)); 81context.Logger?.LogSourceText("AfterHtmlFormatter", changedText); 98context.Logger?.LogSourceText("UnfilteredFormattedHtmlSourceText", formattedText); 115context.Logger?.LogSourceText("FormattedHtmlSourceText", formattedText); 120context.Logger?.LogObject("HtmlFormattingLineInfo", lineInfo); 127context.Logger?.LogObject("FinalHtmlFormattingChanges", finalFormattingChanges); 129context.Logger?.LogSourceText("FinalHtmlFormattedDocument", changedText);
Formatting\Passes\HtmlOnTypeFormattingPass.cs (3)
34context.Logger?.LogSourceText("BeforeHtmlFormatter", changedText); 44context.Logger?.LogSourceText("AfterNormalizedEdits", changedText); 52context.Logger?.LogSourceText("AfterAdjustRazorIndentation", changedText);
Formatting\Passes\RazorFormattingPass.cs (1)
49changedContext.Logger?.LogSourceText("AfterRazorFormatter", changedText);