title: How to get the selected items in source control explorer?
body: <p>I'm writing a vspackage and while I can add things to the context menus in source control explorer, I don't know how to figure out the currently selected file(s).</p>
  
  <p>For the solution explorer, I know I can do something like this:</p>
  
  <pre><code>var applicationObject = GetDTE2();
  UIHierarchy hierarchy = applicationObject.ToolWindows.SolutionExplorer;
  Array selectedItems = (Array)hierarchy.SelectedItems;
  </code></pre>
  
  <p>But looking at applicationObject.ActiveWindow gives me the source control explorer window, but I can't figure out any way to figure out what files are selected.</p>