mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
diff: use DiffEditorTabFilesManager over VcsEditorTabFilesManager
GitOrigin-RevId: af2bc69b324aacf8f2ca7393275f1cf8d58d74a4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bbb73865f7
commit
b83a6715ba
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.platform.lvcs.impl.ui
|
||||
|
||||
import com.intellij.diff.editor.DiffEditorTabFilesManager
|
||||
import com.intellij.diff.impl.DiffEditorViewer
|
||||
import com.intellij.diff.impl.DiffRequestProcessor
|
||||
import com.intellij.diff.impl.DiffRequestProcessorListener
|
||||
@@ -23,7 +24,6 @@ import com.intellij.openapi.util.NlsContexts
|
||||
import com.intellij.openapi.util.registry.Registry
|
||||
import com.intellij.openapi.vcs.changes.EditorTabDiffPreview
|
||||
import com.intellij.openapi.vcs.changes.EditorTabDiffPreviewManager
|
||||
import com.intellij.openapi.vcs.changes.VcsEditorTabFilesManager
|
||||
import com.intellij.openapi.vcs.changes.ui.TreeHandlerEditorDiffPreview
|
||||
import com.intellij.openapi.wm.IdeFocusManager
|
||||
import com.intellij.platform.lvcs.impl.*
|
||||
@@ -322,7 +322,7 @@ class ActivityView(private val project: Project, gateway: IdeaGateway, val activ
|
||||
}
|
||||
|
||||
val activityView = ActivityView(project, gateway, activityScope)
|
||||
if (Registry.`is`("lvcs.open.diff.automatically") && !VcsEditorTabFilesManager.getInstance().shouldOpenInNewWindow) {
|
||||
if (Registry.`is`("lvcs.open.diff.automatically") && DiffEditorTabFilesManager.isDiffInEditor) {
|
||||
activityView.openDiffWhenLoaded()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user