mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
VcsInitialization.ShutDownProjectListener is not needed anymore because the future is a child of the service scope
And the platform already cancels and joins the service scope. GitOrigin-RevId: 97bc866be68403b7692df80c0ee33d3c9a30d53a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2e7c89fe0d
commit
32bb0e261b
@@ -358,8 +358,6 @@
|
||||
<applicationListeners>
|
||||
<listener class="com.intellij.openapi.vcs.changes.patch.PatchClipboardListener"
|
||||
topic="com.intellij.openapi.application.ApplicationActivationListener"/>
|
||||
<listener class="com.intellij.openapi.vcs.impl.VcsInitialization$ShutDownProjectListener"
|
||||
topic="com.intellij.openapi.project.ProjectCloseListener"/>
|
||||
<listener class="com.intellij.openapi.vcs.impl.ProjectLevelVcsManagerImpl$TrustListener"
|
||||
topic="com.intellij.ide.trustedProjects.TrustedProjectsListener"
|
||||
activeInHeadlessMode="false" activeInTestMode="false"/>
|
||||
|
||||
@@ -5,7 +5,6 @@ import com.intellij.diagnostic.runActivity
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.components.Service
|
||||
import com.intellij.openapi.components.service
|
||||
import com.intellij.openapi.components.serviceIfCreated
|
||||
import com.intellij.openapi.diagnostic.debug
|
||||
import com.intellij.openapi.diagnostic.getOrLogException
|
||||
import com.intellij.openapi.diagnostic.logger
|
||||
@@ -13,7 +12,6 @@ import com.intellij.openapi.extensions.ExtensionPointName
|
||||
import com.intellij.openapi.progress.blockingContext
|
||||
import com.intellij.openapi.progress.withBackgroundProgress
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.project.ProjectCloseListener
|
||||
import com.intellij.openapi.project.ex.ProjectEx
|
||||
import com.intellij.openapi.startup.ProjectActivity
|
||||
import com.intellij.openapi.util.Disposer
|
||||
@@ -224,16 +222,6 @@ class VcsInitialization(private val project: Project, private val coroutineScope
|
||||
}
|
||||
}
|
||||
|
||||
internal class ShutDownProjectListener : ProjectCloseListener {
|
||||
override fun projectClosing(project: Project) {
|
||||
if (project.isDefault) {
|
||||
return
|
||||
}
|
||||
|
||||
project.serviceIfCreated<VcsInitialization>()?.cancelBackgroundInitialization()
|
||||
}
|
||||
}
|
||||
|
||||
private class ProxyVcsStartupActivity(vcsInitObject: VcsInitObject, private val runnable: Runnable) : VcsStartupActivity {
|
||||
private val order = vcsInitObject.order
|
||||
|
||||
|
||||
Reference in New Issue
Block a user