public static void Initialize() { AppDataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), Vsix.Code); Directory.CreateDirectory(AppDataFolder); CleanupLegacyFolders(); CoverletUtil.Initialize(AppDataFolder); ReportGeneratorUtil.Initialize(AppDataFolder); MsTestPlatformUtil.Initialize(AppDataFolder); OpenCoverUtil.Initialize(AppDataFolder); }
public static void Initialize(IServiceProvider serviceProvider) { colorThemeService = serviceProvider.GetService(typeof(SVsColorThemeService)); ThreadHelper.JoinableTaskFactory.Run(async() => { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); dte = (DTE)serviceProvider.GetService(typeof(DTE)); Assumes.Present(dte); }); CreateAppDataFolder(); CleanupLegacyFolders(); CoverletUtil.Initialize(AppDataFolder); ReportGeneratorUtil.Initialize(AppDataFolder); MsTestPlatformUtil.Initialize(AppDataFolder); OpenCoverUtil.Initialize(AppDataFolder); }