mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
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 {
|
||||
|
||||
Reference in New Issue
Block a user