[collab/ghai] Move AI comment background color into themeMetadata

(cherry picked from commit 33933900541578ab3be434976d55136610c82991)


(cherry picked from commit 1ca2a6bcf53c84b1c30af9966b550ee9be52bdc6)

IJ-CR-148445

GitOrigin-RevId: a4b16470ab006d374e9174e6baa750a620d48497
This commit is contained in:
Chris Lemaire
2024-10-03 11:25:51 +02:00
committed by intellij-monorepo-bot
parent d2edb7242f
commit b423645739
5 changed files with 14 additions and 14 deletions

View File

@@ -1,8 +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 org.jetbrains.plugins.github.pullrequest.ui.editor
import com.intellij.collaboration.async.classAsCoroutineName
import com.intellij.collaboration.async.extensionListFlow
import com.intellij.collaboration.async.extensionListFlow
import com.intellij.collaboration.ui.codereview.editor.CodeReviewComponentInlayRenderer
import com.intellij.collaboration.ui.util.bindContent
import com.intellij.openapi.extensions.ExtensionPointName
@@ -36,7 +35,7 @@ interface GHPRAICommentComponentFactory {
internal class GHPRAICommentEditorInlayRenderer internal constructor(cs: CoroutineScope, userIcon: Icon, vm: GHPRAICommentViewModel)
: CodeReviewComponentInlayRenderer(Wrapper().apply {
bindContent("${classAsCoroutineName().name}.bindContent", GHPRAICommentComponentFactory.EP_NAME.extensionListFlow()) { extensions ->
bindContent("${javaClass.name}.bindContent", GHPRAICommentComponentFactory.EP_NAME.extensionListFlow()) { extensions ->
val extension = extensions.firstOrNull() ?: return@bindContent null
extension.createAIThread(cs, userIcon, vm)
}