Skip to content

[Bug]: XAML formatting does nothing when only the C# extension is installed #359

Open

Description

Describe the bug

With the C# extension installed but not C# Dev Kit, the default winapp.xaml.formatting.provider = auto disables WinApp formatting to avoid the C# extension's formatter. The C# extension only formats XAML with Dev Kit, so Format Document does nothing.

To Reproduce

  1. Install the C# extension only (no C# Dev Kit).
  2. Open an unformatted .xaml file and run Format Document.
  3. No edits. The output channel logs "WinApp XAML formatting disabled to avoid competing with the C# extension's XAML formatter."

Expected behavior

auto keeps WinApp formatting on when no other XAML formatter is active.

Notes

Related: #305. Bug bash ID: C-29.

Screenshots

No response

OS Version and details

Windows 11 x64 (10.0.26200), VS Code 1.143.1, .NET SDK 10.0.403. Found in the XAML IntelliSense bug bash on 0.3.1-prerelease.456 (PR #276, f90df977).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions