protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { Instance = this; if (!await BundleExtractor.IsLogFileCurrent()) { await BundleExtractor.CopyBundles(); } IsInitialized = true; }
protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { Instance = this; if (!await BundleExtractor.IsLogFileCurrent()) { bool success = await BundleExtractor.CopyBundles(); if (success) { var dte = await GetServiceAsync(typeof(DTE)) as DTE2; dte.StatusBar.Text = "Textmate bundles updated"; } } IsInitialized = true; }