This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +13
-7
lines changed
Expand file tree Collapse file tree 6 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 77using System . Windows ;
88using static Microsoft . VisualStudio . Threading . JoinableTaskFactory ;
99using static Microsoft . VisualStudio . Threading . AwaitExtensions ;
10+ using System . Windows . Threading ;
1011
1112namespace 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 33using 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" ) ]
1616namespace 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}
You can’t perform that action at this time.
0 commit comments