mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable IdeaFreezeReporter for dev mode
GitOrigin-RevId: f03db4024624928c55022f2e80ae59ca1dc31a07
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d8347647f0
commit
b6c003a833
@@ -9,6 +9,7 @@ import com.intellij.featureStatistics.fusCollectors.LifecycleUsageTriggerCollect
|
||||
import com.intellij.ide.AppLifecycleListener
|
||||
import com.intellij.ide.plugins.PluginManagerCore
|
||||
import com.intellij.ide.plugins.PluginUtil
|
||||
import com.intellij.idea.AppMode
|
||||
import com.intellij.internal.DebugAttachDetector
|
||||
import com.intellij.openapi.application.Application
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
@@ -55,12 +56,12 @@ internal class IdeaFreezeReporter : PerformanceListener {
|
||||
}
|
||||
})
|
||||
|
||||
if (DEBUG || !PluginManagerCore.isRunningFromSources()) {
|
||||
if (DEBUG || (!PluginManagerCore.isRunningFromSources() && !AppMode.isDevServer())) {
|
||||
reportUnfinishedFreezes()
|
||||
}
|
||||
}
|
||||
|
||||
if (!DEBUG && PluginManagerCore.isRunningFromSources() || !isEnabled(app)) {
|
||||
if (!DEBUG && (PluginManagerCore.isRunningFromSources() || AppMode.isDevServer()) || !isEnabled(app)) {
|
||||
throw ExtensionNotApplicableException.create()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user