Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.17k stars 128 forks source link

Remove inclusion of context menu in all documents #460

Open mrlacey opened 8 months ago

mrlacey commented 8 months ago

Description:

Fixes #132 (issue)

This removes unneeded and incorrect VSCT entries for the "Format XAML" context menu option.

I assume the "Xamarin" entry was added for a special case (in an earlier version of VS) that no longer applies.

Checklist:

mrlacey commented 5 months ago

Here's an update on my current investigation into resolving the issues blocking this.

Everything here comes with a big AFAIK disclaimer.

There is an existing context menu for when editing XAML documents. Adding to this is easy and was part of the original PR.

The context menu for the document tab is separate and is the same for all document types. I can add to this and filter it so it only shows based on the "Content Type" of the active document. I can do this for XAML files.

*.axaml files are different.

AXAML documents use the standard code editor, but there is no specific context menu to add to that only shows for AXAML documents. I can add the "Format XAML" option to this menu but haven't been able to get it to only show based on the file extension.

AXAML documents have a content type of "xml". I can't get filtering on this content type to work correctly. 😞

I will keep investigating and trying to get this all working as desired....