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 +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 11using System ;
2- using System . ComponentModel . Composition ;
3- using System . ComponentModel . Design ;
4- using System . Diagnostics ;
5- using System . Reflection ;
6- using System . Runtime . InteropServices ;
7- using System . ComponentModel . Composition ;
2+ using System . Windows ;
83using System . Threading ;
94using System . Threading . Tasks ;
10- using System . Windows ;
5+ using System . ComponentModel . Design ;
6+ using System . ComponentModel . Composition ;
7+ using System . Runtime . InteropServices ;
118using GitHub . Api ;
129using GitHub . Commands ;
13- using GitHub . Extensions ;
1410using GitHub . Helpers ;
1511using GitHub . Info ;
1612using GitHub . Exports ;
@@ -74,10 +70,10 @@ async Task InitializeMenus()
7470 {
7571 var menuService = ( IMenuCommandService ) ( await GetServiceAsync ( typeof ( IMenuCommandService ) ) ) ;
7672 var componentModel = ( IComponentModel ) ( await GetServiceAsync ( typeof ( SComponentModel ) ) ) ;
77-
73+
7874 // IMenuCommandService.AddCommand uses IServiceProvider.GetService and must be called on Main thread.
7975 await ThreadingHelper . SwitchToMainThreadAsync ( ) ;
80-
76+
8177 var exports = componentModel . DefaultExportProvider ;
8278 menuService . AddCommands (
8379 exports . GetExportedValue < IAddConnectionCommand > ( ) ,
You can’t perform that action at this time.
0 commit comments