This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . IO ;
3+ using System . Linq ;
34using System . Reflection ;
45using System . Diagnostics ;
56using System . Globalization ;
7+ using System . Runtime . InteropServices ;
68using Microsoft . VisualStudio ;
79using Microsoft . VisualStudio . Shell ;
8- using System . Linq ;
910
1011namespace GitHub . VisualStudio
1112{
@@ -14,6 +15,8 @@ namespace GitHub.VisualStudio
1415
1516 // This fires before ShellInitialized and SolutionExists.
1617 [ ProvideAutoLoad ( VSConstants . UICONTEXT . NoSolution_string ) ]
18+
19+ [ Guid ( GuidList . guidAssemblyResolverPkgString ) ]
1720 public class AssemblyResolverPackage : Package
1821 {
1922 // list of assemblies that should be resolved by name only
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ namespace GitHub.VisualStudio
55 static class GuidList
66 {
77 public const string guidGitHubPkgString = "c3d3dc68-c977-411f-b3e8-03b0dccf7dfc" ;
8+ public const string guidAssemblyResolverPkgString = "a6424dba-34cb-360d-a4de-1b0b0411e57d" ;
89 public const string guidGitHubCmdSetString = "c4c91892-8881-4588-a5d9-b41e8f540f5a" ;
910 public const string guidGitHubToolbarCmdSetString = "C5F1193E-F300-41B3-B4C4-5A703DD3C1C6" ;
1011 public const string guidContextMenuSetString = "31057D08-8C3C-4C5B-9F91-8682EA08EC27" ;
Original file line number Diff line number Diff line change @@ -86,14 +86,16 @@ async Task DoDiffFile(IPullRequestFileNode file)
8686 try
8787 {
8888 var fileNames = await ViewModel . ExtractDiffFiles ( file ) ;
89- var leftLabel = $ "{ file . FileName } ;{ ViewModel . TargetBranchDisplayName } ";
90- var rightLabel = $ "{ file . FileName } ;PR { ViewModel . Model . Number } ";
89+ var leftLabel = $ "{ file . FileName } ;{ ViewModel . TargetBranchDisplayName } ";
90+ var rightLabel = $ "{ file . FileName } ;PR { ViewModel . Model . Number } ";
91+ var caption = $ "Diff - { file . FileName } ";
92+ var tooltip = $ "{ leftLabel } \n vs.\n { rightLabel } ";
9193
92- Services . DifferenceService . OpenComparisonWindow2 (
94+ Services . DifferenceService . OpenComparisonWindow2 (
9395 fileNames . Item1 ,
9496 fileNames . Item2 ,
95- $ " { leftLabel } vs { rightLabel } " ,
96- file . DirectoryPath ,
97+ caption ,
98+ tooltip ,
9799 leftLabel ,
98100 rightLabel ,
99101 string . Empty ,
You can’t perform that action at this time.
0 commit comments