Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit ec1952f

Browse files
committed
Merge branch 'master' into grokys/refactor-idialogview
2 parents da638b5 + 2c8a718 commit ec1952f

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/GitHub.VisualStudio/AssemblyResolverPackage.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using System;
22
using System.IO;
3+
using System.Linq;
34
using System.Reflection;
45
using System.Diagnostics;
56
using System.Globalization;
7+
using System.Runtime.InteropServices;
68
using Microsoft.VisualStudio;
79
using Microsoft.VisualStudio.Shell;
8-
using System.Linq;
910

1011
namespace 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

src/GitHub.VisualStudio/Settings/Guids.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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";

src/GitHub.VisualStudio/UI/Views/PullRequestDetailView.xaml.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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}\nvs.\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,

0 commit comments

Comments
 (0)