コード例 #1
0
        protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            Instance = this;

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

            IsInitialized = true;
        }
コード例 #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;
        }