This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Threading ;
23using System . Runtime . InteropServices ;
34using Microsoft . VisualStudio . Shell ;
45using Microsoft . VisualStudio . ComponentModelHost ;
56using GitHub . VisualStudio ;
67using GitHub . InlineReviews . Services ;
8+ using Task = System . Threading . Tasks . Task ;
79
810namespace GitHub . InlineReviews
911{
1012 [ PackageRegistration ( UseManagedResourcesOnly = true ) ]
1113 [ Guid ( Guids . PullRequestStatusPackageId ) ]
1214 [ ProvideAutoLoad ( Guids . GitSccProviderId ) ]
13- public class PullRequestStatusPackage : Package
15+ public class PullRequestStatusPackage : AsyncPackage
1416 {
15- protected override void Initialize ( )
17+ protected override async Task InitializeAsync ( CancellationToken cancellationToken , IProgress < ServiceProgressData > progress )
1618 {
17- var componentModel = ( IComponentModel ) GetService ( typeof ( SComponentModel ) ) ;
19+ var componentModel = ( IComponentModel ) await GetServiceAsync ( typeof ( SComponentModel ) ) ;
1820 var exportProvider = componentModel . DefaultExportProvider ;
1921 var pullRequestStatusManager = exportProvider . GetExportedValue < IPullRequestStatusBarManager > ( ) ;
2022 pullRequestStatusManager . Initialize ( ) ;
You can’t perform that action at this time.
0 commit comments