[terminal] IJPL-166283 Show inline completion and separators options for PowerShell

Use the same condition in options and during shell integration injection.

GitOrigin-RevId: 53f78e535691008842c25c4d14d6d157d02da3b9
This commit is contained in:
Konstantin Hudyakov
2025-08-01 15:12:43 +00:00
committed by intellij-monorepo-bot
parent e1e10ace5e
commit cb080a1d9a
@@ -55,7 +55,6 @@ import org.jetbrains.plugins.terminal.block.BlockTerminalOptions
import org.jetbrains.plugins.terminal.block.feedback.askForFeedbackIfReworkedTerminalDisabled
import org.jetbrains.plugins.terminal.block.prompt.TerminalPromptStyle
import org.jetbrains.plugins.terminal.runner.LocalTerminalStartCommandBuilder
import org.jetbrains.plugins.terminal.util.ShellNameUtil
import java.awt.Color
import java.awt.Component
import java.awt.event.ActionListener
@@ -454,7 +453,7 @@ private fun isShellWithIntegration(text: String): Boolean {
val shellPath = command.firstOrNull() ?: return false
val shellName = PathUtil.getFileName(shellPath)
return ShellNameUtil.isZshName(shellName) || ShellNameUtil.isBash(shellName)
return LocalTerminalDirectRunner.supportsBlocksShellIntegration(shellName)
}
private fun getDefaultValueColor(): Color {