Skip to content

Commit 5b3f258

Browse files
committed
Forgot to add the static modifier
1 parent c594995 commit 5b3f258

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Kool.EditProject.Shared/Commands/EditProjectCommand.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ internal sealed class EditProjectCommand : BaseCommand
1313

1414
private EditProjectCommand() : base(Ids.EDIT_PROJECT_MENU_COMMAND_ID)
1515
{
16-
var result = Package.Instance.Selection.GetCmdUIContextCookie(Guid.Parse(Ids.EDIT_PROJECT_UI_CONTEXT), out _uiContextCookie);
16+
var result = Package.Selection.GetCmdUIContextCookie(Guid.Parse(Ids.EDIT_PROJECT_UI_CONTEXT), out _uiContextCookie);
1717
ErrorHandler.ThrowOnFailure(result);
1818
}
1919

2020
// After package loaded, the VisibilityConstraints way doesn't work anymore, we need to check it ourselves.
2121
private bool IsUIContextActive()
2222
{
23-
var result = Package.Instance.Selection.IsCmdUIContextActive(_uiContextCookie, out var isActive);
23+
var result = Package.Selection.IsCmdUIContextActive(_uiContextCookie, out var isActive);
2424
ErrorHandler.ThrowOnFailure(result);
2525
return isActive == 1;
2626
}

Kool.EditProject.Shared/Package.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public sealed partial class Package : AsyncPackage
3434
internal const string URL = "https://github.com/heku/kool.editproject";
3535

3636
internal static DTE2 IDE { get; private set; }
37-
internal IVsMonitorSelection Selection { get; private set; }
37+
internal static IVsMonitorSelection Selection { get; private set; }
3838
internal static Options Options { get; private set; }
3939
internal static Package Instance { get; private set; }
4040

0 commit comments

Comments
 (0)