Esempio n. 1
0
        protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            Instance = this;

            if (!await BundleExtractor.IsLogFileCurrent())
            {
                await BundleExtractor.CopyBundles();
            }

            IsInitialized = true;
        }
Esempio n. 2
0
        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;
        }