protected override void Dispose(bool disposing) { SavePackageIndex(); LogCleanup.Cancel(); ProjectIconProvider.Close(); CsvAppFileIO.Close(VsAppShell.Current.FileSystem()); RtvsTelemetry.Current?.Dispose(); VsAppShell.Terminate(); base.Dispose(disposing); }
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); }
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); }