FileDiffer icon indicating copy to clipboard operation
FileDiffer copied to clipboard

Compare option not showing in folder view

Open hcasanova72 opened this issue 2 years ago • 3 comments

The "Compare" option does not shows when working in folder view

Steps to reproduce the behavior:

  1. Open a folder
  2. Select 2 files
  3. Right click them
  4. Notice that the "Compare" options is missing

Expected behavior The "Compare" option should be displayed

Screenshots image

hcasanova72 avatar Feb 23 '23 19:02 hcasanova72

I see this same issue. When solution explorer is in folder view (says "Solution Explorer - Folder View" as the title instead of just "Solution Explorer") the menu for doing compare isn't available.

For normal things that open as solutions like a solution that includes c# projects this isn't really much of an issue as I don't really need folder view but some things are just a bunch of config files in a folder that aren't in a solution.

tp-eallen avatar Apr 12 '23 15:04 tp-eallen

My guess (I never worked on any vs.net addins) is this needs an extra item to add the compare menu: FileDiffer/src/VSCommandTable.vsct

  <Menus>
     <Menu guid="guidDiffFilesCmdSet" id="FlyoutMenu" priority="100" type="Menu">
       <Parent guid="guidSHLMainMenu" id="IDG_VS_CTXT_ITEM_SCC"/>
       <Strings>
         <ButtonText>Compare</ButtonText>
       </Strings>
     </Menu>
     <Menu guid="guidDiffFilesCmdSet" id="EditorFlyoutMenu" priority="100" type="Menu">
       <Parent guid="GitPackage" id="GitEditorContextGroup"/>
       <Strings>
         <ButtonText>Compare</ButtonText>
       </Strings>
     </Menu>
   </Menus>
   

but searching for what possible values to use for Parent isn't coming up with much. I would have hoped there would be a list of possible value and what menus they are for. Also might not know where to look as I don't see much here: https://learn.microsoft.com/en-us/visualstudio/extensibility/internals/guids-and-ids-of-visual-studio-commands And the guid for git isn't showing up the sdk file <Visual Studio SDK installation path>\VisualStudioIntegration\Common\Inc
(not needed in terms of fixing this but to understand to maybe create my own addon for other uses)

tp-eallen avatar Apr 12 '23 15:04 tp-eallen