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

Commit 21b0bc0

Browse files
committed
Merge branch 'master' into grokys/ncrunch
2 parents 88a4aa5 + ca6aa0d commit 21b0bc0

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

src/GitHub.Exports/Helpers/ThreadingHelper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Windows;
88
using static Microsoft.VisualStudio.Threading.JoinableTaskFactory;
99
using static Microsoft.VisualStudio.Threading.AwaitExtensions;
10+
using System.Windows.Threading;
1011

1112
namespace GitHub.Helpers
1213
{
@@ -25,6 +26,11 @@ public static class ThreadingHelper
2526
{
2627
public static bool InUIThread => (!Guard.InUnitTestRunner && Application.Current.Dispatcher.CheckAccess()) || !(Guard.InUnitTestRunner);
2728

29+
/// <summary>
30+
/// Gets the Dispatcher for the main thread.
31+
/// </summary>
32+
public static Dispatcher MainThreadDispatcher => Application.Current.Dispatcher;
33+
2834
/// <summary>
2935
/// Switch to the UI thread using ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync
3036
/// Auto-disables switching when running in unit test mode

src/GitHub.VisualStudio/GitHub.VisualStudio.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</NuGetPackageImportStamp>
1111
<TargetFrameworkProfile />
1212
<BuildType Condition="Exists('..\..\script\src\ApiClientConfiguration.cs')">Internal</BuildType>
13-
<ApplicationVersion>2.2.0.6</ApplicationVersion>
13+
<ApplicationVersion>2.2.0.7</ApplicationVersion>
1414
<OutputPath>..\..\build\$(Configuration)\</OutputPath>
1515
<VsixType>v3</VsixType>
1616
<IsProductComponent>true</IsProductComponent>

src/GitHub.VisualStudio/Services/UsageTracker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public UsageTracker(IGitHubServiceProvider gitHubServiceProvider)
6565
TimeSpan.FromMinutes(3),
6666
DispatcherPriority.Background,
6767
TimerTick,
68-
Dispatcher.CurrentDispatcher);
68+
ThreadingHelper.MainThreadDispatcher);
6969

7070
RunTimer();
7171
}

src/GitHub.VisualStudio/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="c3d3dc68-c977-411f-b3e8-03b0dccf7dfc" Version="2.2.0.6" Language="en-US" Publisher="GitHub, Inc" />
4+
<Identity Id="c3d3dc68-c977-411f-b3e8-03b0dccf7dfc" Version="2.2.0.7" Language="en-US" Publisher="GitHub, Inc" />
55
<DisplayName>GitHub Extension for Visual Studio</DisplayName>
66
<Description xml:space="preserve">A Visual Studio Extension that brings the GitHub Flow into Visual Studio.</Description>
77
<PackageId>GitHub.VisualStudio</PackageId>

src/MsiInstaller/Version.wxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Include>
3-
<?define VersionNumber="2.2.0.6" ?>
3+
<?define VersionNumber="2.2.0.7" ?>
44
</Include>

src/common/SolutionInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
using System.Runtime.InteropServices;
44

55
[assembly: AssemblyProduct("GitHub Extension for Visual Studio")]
6-
[assembly: AssemblyVersion("2.2.0.6")]
7-
[assembly: AssemblyFileVersion("2.2.0.6")]
6+
[assembly: AssemblyVersion("2.2.0.7")]
7+
[assembly: AssemblyFileVersion("2.2.0.7")]
88
[assembly: ComVisible(false)]
99
[assembly: AssemblyCompany("GitHub, Inc.")]
1010
[assembly: AssemblyCopyright("Copyright © GitHub, Inc. 2014-2016")]
@@ -16,6 +16,6 @@
1616
namespace System
1717
{
1818
internal static class AssemblyVersionInformation {
19-
internal const string Version = "2.2.0.6";
19+
internal const string Version = "2.2.0.7";
2020
}
2121
}

0 commit comments

Comments
 (0)