示例#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);
        }
示例#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);
        }
示例#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);
        }