From b7455f398f240dcb0e9d10cc177f0588a8ddfda4 Mon Sep 17 00:00:00 2001 From: Mikhail Pyltsin Date: Thu, 25 Sep 2025 12:53:12 +0200 Subject: [PATCH] [command-completion] IDEA-379780 Command completion: remove 'AI Actions' from the list of commands for injected code - hardcoded GitOrigin-RevId: 24bd3e93f5ea2ca1d8602979a2c996d8e914142e --- .../command/commands/DirectIntentionCommandProvider.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/command/commands/DirectIntentionCommandProvider.kt b/platform/lang-impl/src/com/intellij/codeInsight/completion/command/commands/DirectIntentionCommandProvider.kt index 6e7fc8dcc23b..81907ae9a2a6 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/command/commands/DirectIntentionCommandProvider.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/command/commands/DirectIntentionCommandProvider.kt @@ -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) {