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

オープン 初心者向け
#359 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 15 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
devtools, frontend

調査の方向性

まず、設定 winapp.xaml.formatting.provider と、XAML のフォーマットが無効であることをログに記録するコードを確認します。issue には特定のファイルやテストは記載されていません。C# Dev Kit をインストールせず、C# extension をインストールした状態で再現し、その後、ほかの XAML formatter が有効でない場合に auto が WinApp のフォーマットを有効なままにすることと、Format Document が編集を行うことを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug intellisense
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).

主要言語
TypeScript
スター
15
フォーク
4
平均マージ
10日 22時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/WinAppVSCE のほかの issue

microsoft/WinAppVSCE の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。