/// <summary> /// Is called when the plugin is loaded. This happens every time when a repository is opened. /// </summary> public override void Register(IGitUICommands gitUiCommands) { //OAuth2Handler.RegisterURIHandler(); currentGitUiCommands = gitUiCommands;; currentGitUiCommands.PostSettings += CurrentGitUiCommands_PostSettings; currentGitUiCommands.PostRegisterPlugin += GitUiCommands_PostRegisterPlugin; InitializeConfiguredParameters(gitUiCommands.GitModule); if (IsGitLabRepo(gitUiCommands)) { base.Register(gitUiCommands); GitLabPluginScriptManager.Initialize(); ForceRefreshGE(gitUiCommands); } else { GitLabPluginScriptManager.Clean(); ForceRefreshGE(gitUiCommands); } }
public override void Unregister(IGitUICommands gitUiCommands) { GitLabPluginScriptManager.Clean(); repoType = null; }