Fixed bringing terminal window into foreground for Rider (FIXED RIDER-114936)

IJ-MR-140313

GitOrigin-RevId: af8f3465a9725cd1186916a7f55ba6232367dc9a
This commit is contained in:
Evgeny.Terekhin
2024-07-18 14:52:21 +00:00
committed by intellij-monorepo-bot
parent 74a1c1fdc4
commit d3a058c788
@@ -70,8 +70,8 @@ private fun tryFindParentProcess(pid: UInt, parentProcessesWeLookingFor: List<St
}
private fun WinBringProcessWindowToForegroundSupport.tryBringWindowsTerminalInForeground(dataHolder: UserDataHolder, pid: UInt): Boolean {
if (tryFindParentProcess(pid, listOf("cmd.exe")) == null) {
logger.trace { "The process hasn't been launched under cmd.exe" }
if (tryFindParentProcess(pid, listOf("JetBrains.Debugger.Worker.exe")) == null) {
logger.trace { "The process hasn't been launched under JetBrains.Debugger.Worker.exe" }
return false
}