[debugger] IJPL-194934: Return null in session.getUI when proxy is used

Previously it returned only when showFeWarnings is also enabled, but it should affect `LOG.error`s only


(cherry picked from commit 811a0a318cd62257ebebd7d7266257978d57a206)

IJ-CR-167745

GitOrigin-RevId: 05a9b883f26e515a0b6852bd24217204a2f43891
This commit is contained in:
Nikolay Rykunov
2025-07-01 15:39:11 +02:00
committed by intellij-monorepo-bot
parent 366206ee11
commit 1f3d0b7077

View File

@@ -434,9 +434,11 @@ class XDebugSessionImpl @JvmOverloads constructor(
}
override fun getUI(): RunnerLayoutUi? {
return if (useFeProxy() && showFeWarnings()) {
return if (useFeProxy()) {
// See "TODO [Debugger.RunnerLayoutUi]" to see usages which are not yet properly migrated.
LOG.error("RunnerLayoutUi should not be used in split mode from XDebugSession")
if (showFeWarnings()) {
LOG.error("RunnerLayoutUi should not be used in split mode from XDebugSession")
}
null
}
else {