File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public void Run(IVsServiceProvider vsServiceProvider)
20
20
RootContainer = new UnityContainer ( ) ;
21
21
Container = RootContainer ;
22
22
23
+ Container . RegisterInstance ( vsServiceProvider ) ;
23
24
Container . RegisterInstance ( vsServiceProvider . ErrorList ) ;
24
25
Container . RegisterInstance ( vsServiceProvider . OutliningManagerService ) ;
25
26
Container . RegisterInstance ( vsServiceProvider . ComponentModel ) ;
Original file line number Diff line number Diff line change 2
2
using System . ComponentModel . Design ;
3
3
using System . Linq ;
4
4
using System . Windows . Controls ;
5
+ using Microsoft . VisualStudio . Shell ;
5
6
using Steroids . CodeStructure . Adorners ;
6
7
using Steroids . CodeStructure . UI ;
7
8
using Steroids . Contracts . Core ;
9
+ using Threading = System . Threading . Tasks ;
8
10
9
11
namespace SteroidsVS . CodeAdornments
10
12
{
@@ -35,6 +37,13 @@ public CodeStructureOpenCommand(
35
37
throw new ArgumentNullException ( nameof ( vsServiceProvider ) ) ;
36
38
}
37
39
40
+ RegisterCommandAsync ( vsServiceProvider ) . ConfigureAwait ( false ) ;
41
+ }
42
+
43
+ private async Threading . Task RegisterCommandAsync ( IVsServiceProvider vsServiceProvider )
44
+ {
45
+ await ThreadHelper . JoinableTaskFactory . SwitchToMainThreadAsync ( ) ;
46
+
38
47
var commandService = vsServiceProvider . MenuCommandService ;
39
48
if ( commandService != null )
40
49
{
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<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" >
3
3
<Metadata >
4
- <Identity Id =" 97188178-f68c-49a6-9e5e-5fb99661bf09" Version =" 0.2.34 " Language =" en-US" Publisher =" Erik Berthold" />
4
+ <Identity Id =" 97188178-f68c-49a6-9e5e-5fb99661bf09" Version =" 0.2.35 " Language =" en-US" Publisher =" Erik Berthold" />
5
5
<DisplayName >SteroidsVS</DisplayName >
6
6
<Description xml : space =" preserve" >Adds useful features to Visual Studio e.g. a nice code structure view.</Description >
7
7
<Icon >Assets\SteroidsVS_icon.png</Icon >
You can’t perform that action at this time.
0 commit comments