mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
Disposable StatisticsFileEventLogger lifecycle was bound to Application and disposed only on application close. This does not allow plugins with own implementation of StatisticsEventLoggerProvider to reload without memory leak. Created Application and Project level coroutine scopes for Statistics. Hold coroutine scope in StatisticsEventLoggerProvider and provide ability to override it. Handle lifecycle of disposable StatisticsFileEventLogger with coroutine instead of Disposer#register. Subscribe to EventLogConfigOptionsService.TOPIC using coroutine scope. Override coroutine scope in some implementations of implementation of StatisticsEventLoggerProvider. GitOrigin-RevId: f4efe2f589602482ab8746d06ad67bc810f973ee