private void Setup() { VisualStudioServices.ServiceProvider = this; VisualStudioServices.OLEServiceProvider = (Microsoft.VisualStudio.OLE.Interop.IServiceProvider)VisualStudioServices.ServiceProvider.GetService(typeof(Microsoft.VisualStudio.OLE.Interop.IServiceProvider)); VisualStudioServices.ComponentModel = (IComponentModel)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SComponentModel)); EditorService.Create(VisualStudioServices.ServiceProvider, VisualStudioServices.OLEServiceProvider); ProjectSelectionService.Create(); }
private void WhenDisposeResource() { EditorService.Destroy(); ProjectSelectionService.Destroy(); }