-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
3,359 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using Microsoft.VisualStudio.Shell; | ||
using OpenInApp.Common.Helpers; | ||
using OpenInApp.Menu; | ||
using OpenInVS2019Community.Options.VS2019Community; | ||
using System; | ||
|
||
namespace OpenInVS2019Community.Commands | ||
{ | ||
internal sealed class OpenInAppCommand | ||
{ | ||
private readonly Package _package; | ||
private IServiceProvider serviceProvider { get { return _package; } } | ||
|
||
public OpenInAppCommand(Package package) | ||
{ | ||
_package = package; | ||
} | ||
|
||
public void Initialize() | ||
{ | ||
var menuCore = new MenuCore( | ||
Vsix.Name, | ||
Vsix.Version, | ||
PackageGuids.guidOpenInVsCmdSetString, | ||
PackageIds.CmdIdOpenInAppItemNode, | ||
PackageIds.CmdIdOpenInAppCodeWin, | ||
PackageIds.CmdIdOpenInAppFolderNode, | ||
PackageIds.CmdIdOpenInAppProjNode, | ||
GeneralOptions.keyToExecutableEnum, | ||
VSPackage.Options.ActualPathToExe, | ||
VSPackage.Options.FileQuantityWarningLimit, | ||
VSPackage.Options.SuppressTypicalFileExtensionsWarning, | ||
VSPackage.Options.TypicalFileExtensions, | ||
GeneralOptions.keyToExecutableEnum.Description(), | ||
serviceProvider, | ||
VSPackage.Options); | ||
|
||
menuCore.MenuCoreOpenInAppCommand(_package); | ||
} | ||
} | ||
} |
Oops, something went wrong.