-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[WIP] Add Pull Request filter button to Visual Studio solution explorer #1667
base: master
Are you sure you want to change the base?
[WIP] Add Pull Request filter button to Visual Studio solution explorer #1667
Conversation
This is a great idea @laurentkempe! Please let us know if you have any questions. You can ping me in https://gitter.im/github/VisualStudio if you want to chat. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using Mads Kristensen's ExtensibilityTools extension:
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityTools
I'm seeing the following build error:
Does this make sense to you?
Alas `out var` isn't supported.
I've just pushed a fix so that it compiles in VS 2015. Alas we're still restricted to C# 6.0. 😭 |
The issue above was that the <Bitmaps>
<Bitmap guid="guidImages" href="Resources\PullRequestFilterCommand.png" usedList="pullrequest"/>
</Bitmaps>
<GuidSymbol name="guidImages" value="{775aa523-6c52-4c11-9c28-823c99d15613}" >
<IDSymbol name="pullrequest" value="1" />
</GuidSymbol> We should probably change to use an |
I think there's a bug in CA where it suggests changing ToLowerInvariant to ToUpperInvariant (I don't think it matters in this case). Make PullRequestFilterPackageGuids a static class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've fixed the bitmap and CA issues.
We need to compare hierarchy items, which come in lower case, to pull request session files in upper case!
I have no clue how that work @jcansdale |
@donokuda do you think we could get a vector version of the PR filter icon? 🙏 |
@jcansdale I think there is one in XAML in one of the other project! I was trying to see how we could reuse that one without copying it, and also how we can use XAML in a button declared in vsct files. I don't know if that is possible, but I am quite new to all this VS development |
I'm not very familiar with this area myself. Here are a couple of pertinent links: I think it might simply be a case of copying Then copying the following into <GuidSymbol name="guidContextMenuSet" value="{31057D08-8C3C-4C5B-9F91-8682EA08EC27}">
<IDSymbol name="idGitHubContextMenu" value="0x1000" />
<IDSymbol name="idGitHubContextMenuGroup" value="0x1001" />
<IDSymbol name="idGitHubContextSubMenuGroup" value="0x1002" />
<IDSymbol name="openLinkCommand" value="0x100" />
<IDSymbol name="copyLinkCommand" value="0x101"/>
<IDSymbol name="goToSolutionOrPullRequestFileCommand" value="0x0102" />
<IDSymbol name="idCreateGistCommand" value="0x0400" />
<IDSymbol name="idBlameCommand" value="0x0500" />
</GuidSymbol> It you have time, I'll leave you to try it. 😄 |
I will try for sure, I want to be 🥇 |
53148d0
to
dd860be
Compare
Codecov Report
@@ Coverage Diff @@
## master #1667 +/- ##
=========================================
Coverage ? 40.22%
=========================================
Files ? 407
Lines ? 17370
Branches ? 2393
=========================================
Hits ? 6987
Misses ? 9860
Partials ? 523
|
dd860be
to
e95d218
Compare
@jameswhite It doesn't work! I also tried to add a copy of Anyone would have an idea? I spent 4h today on that and I am 💀 |
e8f0e3e
to
d54e072
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the suggested change. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I meant to request changes rather than approve. 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the suggested changes inline.
Co-Authored-By: laurentkempe <laurent.kempe@techheadbrothers.com>
@laurentkempe 👋I created a vector (I named this file <?xml version="1.0" encoding="UTF-8"?>
<!--This file is compatible with Silverlight-->
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Name="svg72" Width="48" Height="48">
<Canvas>
<Path Fill="#FF1B1F23" Stroke="#FFF6F6F6" Data="M14.547 13.257V23.5h-3.233V13.258L3.5 6.886V4.5h18.86v2.386l-7.813 6.37z"/>
<Path Fill="#FFF6F6F6" Stroke="#FFF6F6F6" Data="M42.5 35.992c1.225.84 2 2.278 2 3.82 0 2.563-2 4.626-4.5 4.626s-4.5-2.063-4.5-4.626a4.63 4.63 0 0 1 2-3.82V23.33c-.016-.45-.155-.776-.47-1.086-.33-.324-.637-.465-1.03-.496h-1.5v4.86l-7.196-7.422 7.196-7.422v4.86h1.52c1.674.066 3.156.768 4.456 2.087 1.28 1.298 1.96 2.837 2.024 4.6v12.679zm-8-19.367v1H34v-1h.501zm-8 6.384V35.99a4.66 4.66 0 0 1 2 3.82c0 2.563-2 4.626-4.5 4.626s-4.5-2.063-4.5-4.626a4.63 4.63 0 0 1 2-3.82V29.1v-6.094a4.66 4.66 0 0 1-2-3.82c0-2.563 2-4.625 4.5-4.625s4.5 2.062 4.5 4.624a4.63 4.63 0 0 1-2 3.822z"/>
<Path Fill="#FF1B1F23" Data="M42 36.265V23.312c-.06-1.608-.68-3.03-1.88-4.248-1.2-1.217-2.56-1.877-4.12-1.94h-2V13l-6 6.188 6 6.187V21.25h2c.54.04.96.227 1.38.64.42.412.6.866.62 1.422v12.953c-1.18.7-2 2.02-2 3.547 0 2.29 1.78 4.126 4 4.126 2.22 0 4-1.836 4-4.126a4.15 4.15 0 0 0-2-3.547zm-2 6.023c-1.32 0-2.4-1.135-2.4-2.475s1.1-2.476 2.4-2.476c1.3 0 2.4 1.135 2.4 2.475s-1.1 2.476-2.4 2.476zm-12-23.1c0-2.29-1.78-4.125-4-4.125-2.22 0-4 1.835-4 4.124a4.15 4.15 0 0 0 2 3.548v13.53c-1.18.7-2 2.02-2 3.547 0 2.29 1.78 4.126 4 4.126 2.22 0 4-1.836 4-4.126a4.15 4.15 0 0 0-2-3.547v-13.53c1.18-.7 2-2.02 2-3.547zm-1.6 20.625c0 1.36-1.1 2.474-2.4 2.474-1.3 0-2.4-1.134-2.4-2.474 0-1.34 1.1-2.476 2.4-2.476 1.3 0 2.4 1.135 2.4 2.475zM24 21.663c-1.32 0-2.4-1.135-2.4-2.476 0-1.34 1.1-2.475 2.4-2.475 1.3 0 2.4 1.135 2.4 2.476 0 1.34-1.1 2.475-2.4 2.475z"/>
</Canvas>
</Canvas> I didn't know how to implement this separate to test it out, so what I did was replace an existing xaml file and looked at the result in dark, light, and blue theme 😅: I think this looks good in case you wanted to apply the xaml to your pull request. Let me know if there's anything else I can do to help out. Thanks for bearing with my late delivery with the icon 😄 |
Thanks a lot @donokuda for the great icon, it looks awesome! Here it is in place On thing that might be improved is that the size of the filtering, and the other part of the icon do not match 100% You can better see it here |
d131c40
to
9eaeb06
Compare
9eaeb06
to
f1d3741
Compare
See #1666
Related