Esempio n. 1
0
        protected override void Dispose(bool disposing)
        {
            SavePackageIndex();

            LogCleanup.Cancel();
            ProjectIconProvider.Close();
            CsvAppFileIO.Close(VsAppShell.Current.FileSystem());

            RtvsTelemetry.Current?.Dispose();
            VsAppShell.Terminate();

            base.Dispose(disposing);
        }
Esempio n. 2
0
        protected override void Dispose(bool disposing)
        {
            SavePackageIndex();

            LogCleanup.Cancel();
            ProjectIconProvider.Close();
            CsvAppFileIO.Close(new FileSystem());

            RtvsTelemetry.Current.Dispose();

            using (var p = Current.GetDialogPage(typeof(RToolsOptionsPage)) as RToolsOptionsPage) {
                p?.SaveSettings();
            }

            base.Dispose(disposing);
        }
Esempio n. 3
0
        protected override void Dispose(bool disposing)
        {
            if (_indexBuildingTask != null && !_indexBuildingTask.IsFaulted)
            {
                _indexBuildingTask.Wait(2000);
                _indexBuildingTask = null;
            }

            LogCleanup.Cancel();
            ProjectIconProvider.Close();
            CsvAppFileIO.Close();

            RtvsTelemetry.Current.Dispose();

            using (var p = RPackage.Current.GetDialogPage(typeof(RToolsOptionsPage)) as RToolsOptionsPage) {
                p.SaveSettings();
            }

            base.Dispose(disposing);
        }