public void Dispose() { _output.Write("Unloading."); #if !RESHARPER_6 _selfPlugin.Enabled = false; ResharperPluginManager.Instance.Plugins.Remove(_selfPlugin); #else _selfPlugin.IsEnabled.SetValue(false); _pluginsDirectory.Plugins.Remove(_selfPlugin); _lifetimeDefinition.Terminate(); _host = null; #endif _selfPlugin = null; }
public void Dispose() { _output.Write("Unloading."); //runTestRunner = false; #if !v600 && !v610 _selfPlugin.Enabled = false; ResharperPluginManager.Instance.Plugins.Remove(_selfPlugin); #else _selfPlugin.IsEnabled.SetValue(false); _pluginsDirectory.Plugins.Remove(_selfPlugin); _lifetimeDefinition.Terminate(); _host = null; #endif _selfPlugin = null; }
public PluginManager() { _dte = (DTE2)SiteManager.GetGlobalService<DTE>(); _output = new OpenWrapOutput("Resharper Plugin Manager"); _output.Write("Loaded ({0}).", GetType().Assembly.GetName().Version); #if !v600 && !v610 && !v710 _threading = new LegacyShellThreading(); #else _host = resharper::JetBrains.VsIntegration.Application.JetVisualStudioHost.GetOrCreateHost((Microsoft.VisualStudio.OLE.Interop.IServiceProvider)_dte); var resolvedObj = _host.Environment.Container.ResolveDynamic(typeof(ResharperThreading)); if (resolvedObj != null) _threading = (ResharperThreading)resolvedObj.Instance; #endif if (_threading == null) { _output.Write("Threading not found, the plugin manager will not initialize."); return; } _threading.Run("Loading plugins...", StartDetection); }
public PluginManager() { _dte = (DTE2)SiteManager.GetGlobalService <DTE>(); _output = new OpenWrapOutput("Resharper Plugin Manager"); _output.Write("Loaded ({0}).", GetType().Assembly.GetName().Version); #if !v600 _threading = new LegacyShellThreading(); #else _host = resharper::JetBrains.VsIntegration.Application.JetVisualStudioHost.GetOrCreateHost((Microsoft.VisualStudio.OLE.Interop.IServiceProvider)_dte); var resolvedObj = _host.Environment.Container.ResolveDynamic(typeof(ResharperThreading)); if (resolvedObj != null) { _threading = (ResharperThreading)resolvedObj.Instance; } #endif if (_threading == null) { _output.Write("Threading not found, the plugin manager will not initialize."); return; } _threading.Run("Loading plugins...", StartDetection); }