yysun / Git-Source-Control-Provider

Git Source Control Provider is a visual studio plug-in that integrates Git with visual studio solution explorer.

Home Page:http://gitscc.codeplex.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Visual Studio 2015 support

ubikuity opened this issue · comments

I added the following code to "source.extension.vsixmanifest"

      <VisualStudio Version="14.0">
        <Edition>Ultimate</Edition>
        <Edition>Premium</Edition>
        <Edition>Pro</Edition>
        <Edition>IntegratedShell</Edition>
      </VisualStudio>

I compiled it and I installed "GitSccProvider.vsix" into Visual Studio 2015 RC.
=> The extension is partially working:

  • The "History" window and the GitExtensions/TortoiseGit operations are working
  • The "Pending changes" window doesn't work: it doesn't show up (and there is no error message).

Do you know how to fix the problem? Do you plan to support Visual Studio 2015?
Thank you.

Sorry. The "Pending changes" window is working in Visual Studio 2015.
I just realised the "Pending changes" window opened on the left corner my second monitor :-)

I created a merge request to add support for Visual Studio 2015:
#121

Update: when I open "Pending changes" window, sometimes I get an error message.

ActivityLog.xml:

  <entry>
    <record>992</record>
    <time>2015/05/04 16:14:42.841</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.ArgumentNullException: Value cannot be null.&#x000D;&#x000A;Parameter name: ivsHierarchy&#x000D;&#x000A;   at Microsoft.VisualStudio.CodeSense.FileIndicator.Provider.IVsHierarchyExtensions.IsNonMemberItem(IVsHierarchy ivsHierarchy, UInt32 itemId)&#x000D;&#x000A;   at Microsoft.VisualStudio.CodeSense.FileIndicator.Provider.RunningDocumentTableExtensions.GetProject(RunningDocumentTable runningDocumentTable, String filePath)&#x000D;&#x000A;   at Microsoft.VisualStudio.CodeSense.FileIndicator.Provider.FileIndicatorMarginFactory.CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.&lt;AddMargins&gt;b__3(IWpfTextViewMarginProvider mp)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)</description>
  </entry>

I think what you are seeing has to do with the feature "CodeLens indicators for all types of files":

http://blogs.msdn.com/b/visualstudioalm/archive/2015/04/29/what-s-new-in-codelens-for-visual-studio-2015-rc.aspx

The editor might be trying to put that information in the text view that appears in the pending changes window.