GTW-5620 [rdct] disable LUX-backed all-in-one diff for RemDev

GitOrigin-RevId: 7d496446f8fa0ff3d13ed21ecb24db0711ba6900
This commit is contained in:
Aleksey Pivovarov
2023-08-22 18:56:36 +02:00
committed by intellij-monorepo-bot
parent 7efba6dda0
commit e279b72308

View File

@@ -1,10 +1,11 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.diff.tools.combined
import com.intellij.idea.AppMode
import com.intellij.openapi.util.registry.Registry
object CombinedDiffRegistry {
fun isEnabled(): Boolean = Registry.`is`("enable.combined.diff")
fun isEnabled(): Boolean = Registry.`is`("enable.combined.diff") && !AppMode.isRemoteDevHost()
fun getPreloadedBlocksCount(): Int = Registry.intValue("combined.diff.visible.viewport.delta", 3, 1, 100)