コード例 #1
0
        /// <summary>
        /// Initializes the singleton instance of the command.
        /// </summary>
        /// <param name="package">Owner package, not null.</param>
        public static async Task InitializeAsync(AsyncPackage package, CommandController commandController)
        {
            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(package.DisposalToken);

            OleMenuCommandService commandService = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            Instance = new DiffOpenFilesCommand(package, commandService, commandController);
        }
コード例 #2
0
        public async Task InitializeAsync(AsyncPackage package)
        {
            await DiffOpenFilesCommand.InitializeAsync(package, this);

            await DiffSolutionExplorerFilesCommand.InitializeAsync(package, this);
        }