[command-completion] IDEA-379780 Command completion: remove 'AI Actions' from the list of commands for injected code

- hardcoded

GitOrigin-RevId: 24bd3e93f5ea2ca1d8602979a2c996d8e914142e
This commit is contained in:
Mikhail Pyltsin
2025-09-26 15:52:01 +00:00
committed by intellij-monorepo-bot
parent 7e4ed9a6c2
commit b7455f398f
@@ -511,6 +511,8 @@ internal class DirectIntentionCommandProvider : CommandProvider {
intentionsCache.wrapAndUpdateActions(actionsToShow, false)
for (intention in intentionsCache.intentions) {
if (intention.action is EmptyIntentionAction || intentionCommandSkipperList.any { skipper -> skipper.skip(intention.action, psiFile, currentOffset) }) continue
//todo hardcoded, get rid of when it will be clear what to do with this
if (IntentionActionDelegate.unwrap(intention.action).javaClass.name == "com.intellij.ml.llm.intentions.chat.AIAssistantIntention") continue
val intentionCommand =
IntentionCompletionCommand(intention, 50, AllIcons.Actions.IntentionBulbGrey,
calculateIntentionHighlighting(intention, editor, psiFile, offset), topLevelCurrentOffset) {