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.ziporRange_*_razor.ziparchive into the test suite
Goal
- Get a local path to the formatting log archive.
- Import every file from that zip into
src\Razor\src\Razor\test\Microsoft.VisualStudio.LanguageServices.Razor.UnitTests\TestFiles\FormattingLog\<TestName>\. - Add a matching
[Fact]tosrc\Razor\src\Razor\test\Microsoft.VisualStudio.LanguageServices.Razor.UnitTests\Cohost\Formatting\FormattingLogTest.cs. - Run the imported formatting log test.
- If it passes, report that the issue captured in the logs no longer reproduces.
- If it fails, keep the imported repro, reduce it to a minimal
DocumentFormattingTest, and then fix the product code.