IJPL-171282 'Always show full path in the window header' doesn't work in Remote

GitOrigin-RevId: ac03a4b73cdb5ecfb1a2e6649ff12b21e787b742
This commit is contained in:
Vera Petrenkova
2024-11-21 16:45:50 +00:00
committed by intellij-monorepo-bot
parent 77813916c7
commit 7584c851ed
@@ -12,10 +12,10 @@ import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapi.vfs.newvfs.VfsPresentationUtil
import com.intellij.ui.ExperimentalUI
import com.intellij.util.PathUtil
import com.intellij.util.PlatformUtils
import org.jetbrains.annotations.NonNls
import org.jetbrains.annotations.SystemIndependent
import kotlin.io.path.Path
open class PlatformFrameTitleBuilder : FrameTitleBuilder() {
override fun getProjectTitle(project: Project): String {
@@ -61,7 +61,7 @@ private fun doGetFileTitle(
): String {
return when {
overriddenTitle != null -> overriddenTitle
Path(file.path).parent == null -> file.presentableName
PathUtil.getParentPath(file.path).isEmpty() -> file.presentableName
UISettings.getInstance().fullPathsInWindowHeader && !ExperimentalUI.isNewUI() -> {
displayUrlRelativeToProject(
file = file,