AnkhSVN2019 icon indicating copy to clipboard operation
AnkhSVN2019 copied to clipboard

Not all file types show status icons

Open BrianLawton opened this issue 5 years ago • 4 comments

I'm working with a VS 2019 containing containing database projects as well as Integration Services projects. While the plugin seems to be working perfectly as far as managing the underlying files themselves, I noticed the SSIS related files showing in Solution Explorer are missing the status icons.

Here's an example where I've circled database project files with their icons showing in blue and the SSIS related files that are missing icons in red. Again, the plugin is correctly managing the files, it's just not displaying the visual indicators.

image

BrianLawton avatar Jan 22 '20 18:01 BrianLawton

I have only scratched the surface of understanding how AnkhSVN works, so I don't know how quickly I can fix this issue. I will look into it in the next few days.

PhilJollans avatar Jan 22 '20 23:01 PhilJollans

This is what I have found out.

Visual Studio provides a mechanism for SCC (Source Code Control) providers to add glyphs to files in the solution explorer. This feature is only available for SCC providers.

AnkhSVN implements the interface IVsSccGlyphs which has one method, GetCustomGlyphList. This method provides the set of glyphs that will be used.

AnkhSVN also implements the interface IVsSccManager2. The method GetSccGlyph in this interface is called by Visual Studio to get an glyph-index for a file in the project.

The method GetSccGlyph is called and AnkhSVN does provide an index, which as far as I can tell is correct. However, the glyph is not shown for a .dtsx file or for the a .dtproj file.

This seems to me like an error in Visual Studio.

By the way, I have also found an old discussion topic in the CollabNet forum, which might be about the same problem. It is not clear to me whether it was resolved.

PhilJollans avatar Jan 24 '20 22:01 PhilJollans

I have submitted a report to Microsoft: https://developercommunity.visualstudio.com/content/problem/896697/scc-glyphs-not-showing-for-ssis-project.html

PhilJollans avatar Jan 24 '20 23:01 PhilJollans

Thanks!! I've upvoted your report.

BrianLawton avatar Jan 25 '20 19:01 BrianLawton