[Auto-Reload] fix: don't use getInstance for other services when the main service is disposing.

GitOrigin-RevId: 6c66178ddc5e944eb1d107ded0a2e49ff1d189f5
This commit is contained in:
Sergei Vorobyov
2023-05-17 14:47:53 +00:00
committed by intellij-monorepo-bot
parent e275a44e13
commit 93dad6c980
@@ -48,8 +48,8 @@ class AutoImportProjectTracker(
private val serviceDisposable: Disposable = this
private val settings get() = AutoImportProjectTrackerSettings.getInstance(project)
private val notificationAware get() = ExternalSystemProjectNotificationAware.getInstance(project)
private val settings = AutoImportProjectTrackerSettings.getInstance(project)
private val notificationAware = ExternalSystemProjectNotificationAware.getInstance(project)
private val projectStates = ConcurrentHashMap<State.Id, State.Project>()
private val projectDataMap = ConcurrentHashMap<ExternalSystemProjectId, ProjectData>()