Skip to content

Commit

Permalink
Forgot to add the static modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
heku committed Mar 13, 2023
1 parent c594995 commit 5b3f258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Kool.EditProject.Shared/Commands/EditProjectCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ internal sealed class EditProjectCommand : BaseCommand

private EditProjectCommand() : base(Ids.EDIT_PROJECT_MENU_COMMAND_ID)
{
var result = Package.Instance.Selection.GetCmdUIContextCookie(Guid.Parse(Ids.EDIT_PROJECT_UI_CONTEXT), out _uiContextCookie);
var result = Package.Selection.GetCmdUIContextCookie(Guid.Parse(Ids.EDIT_PROJECT_UI_CONTEXT), out _uiContextCookie);
ErrorHandler.ThrowOnFailure(result);
}

// After package loaded, the VisibilityConstraints way doesn't work anymore, we need to check it ourselves.
private bool IsUIContextActive()
{
var result = Package.Instance.Selection.IsCmdUIContextActive(_uiContextCookie, out var isActive);
var result = Package.Selection.IsCmdUIContextActive(_uiContextCookie, out var isActive);
ErrorHandler.ThrowOnFailure(result);
return isActive == 1;
}
Expand Down
2 changes: 1 addition & 1 deletion Kool.EditProject.Shared/Package.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public sealed partial class Package : AsyncPackage
internal const string URL = "https://github.com/heku/kool.editproject";

internal static DTE2 IDE { get; private set; }
internal IVsMonitorSelection Selection { get; private set; }
internal static IVsMonitorSelection Selection { get; private set; }
internal static Options Options { get; private set; }
internal static Package Instance { get; private set; }

Expand Down

0 comments on commit 5b3f258

Please sign in to comment.