formatting-log

Installation
SKILL.md

Razor Formatting Log Investigation

Use this skill when:

  • investigating a Razor formatting issue from Visual Studio or VS Code feedback
  • given an Azure DevOps work item, Developer Community ticket, or GitHub issue that includes a formatting log zip
  • asked to import a Full_*_razor.zip or Range_*_razor.zip archive into the test suite

Goal

  1. Get a local path to the formatting log archive.
  2. Import every file from that zip into src\Razor\src\Razor\test\Microsoft.VisualStudio.LanguageServices.Razor.UnitTests\TestFiles\FormattingLog\<TestName>\.
  3. Add a matching [Fact] to src\Razor\src\Razor\test\Microsoft.VisualStudio.LanguageServices.Razor.UnitTests\Cohost\Formatting\FormattingLogTest.cs.
  4. Run the imported formatting log test.
  5. If it passes, report that the issue captured in the logs no longer reproduces.
  6. If it fails, keep the imported repro, reduce it to a minimal DocumentFormattingTest, and then fix the product code.

Finding the archive

Azure DevOps / VS feedback ticket

Installs
1
Repository
dotnet/roslyn
GitHub Stars
20.6K
First Seen
4 days ago
formatting-log — dotnet/roslyn