// Called by the scc manager when the provider is activated. // Make visible and enable if necessary scc related menu commands public int SetActive() { Trace.WriteLine(String.Format(CultureInfo.CurrentUICulture, "Git Source Control Provider set active")); _active = true; GlobalCommandHook hook = GlobalCommandHook.GetInstance(_sccProvider); hook.HookCommand(new CommandID(VSConstants.VSStd2K, (int)VSConstants.VSStd2KCmdID.SLNREFRESH), HandleSolutionRefresh); MarkDirty(false); return(VSConstants.S_OK); }
// Called by the scc manager when the provider is activated. // Make visible and enable if necessary scc related menu commands public int SetActive() { Trace.WriteLine(String.Format(CultureInfo.CurrentUICulture, "EZ-GIT set active")); _active = true; GlobalCommandHook hook = GlobalCommandHook.GetInstance(_sccProvider); hook.HookCommand(new CommandID(VSConstants.VSStd2K, (int)VSConstants.VSStd2KCmdID.SLNREFRESH), HandleSolutionRefresh); ThreadHelper.JoinableTaskFactory.Run(async delegate { await OpenTracker(); await RefreshSolution(); }); //MarkDirty(false); return(VSConstants.S_OK); }