IJP-1077 Inlay hints: new settings UI

do not show description/snippet for parent nodes

GitOrigin-RevId: 35a1d34a50a40c534348d3056c734f5a3c836e3d
This commit is contained in:
Dmitry Avdeev
2021-10-07 14:58:08 +00:00
committed by intellij-monorepo-bot
parent 93fedd74a4
commit 6453e2963c
@@ -132,10 +132,14 @@ class InlaySettingsPanel(val project: Project): JPanel(BorderLayout()) {
rightPanel.removeAll()
when (val item = treeNode?.userObject) {
is InlayProviderSettingsModel -> {
addDescription(item.description)
if (treeNode.isLeaf) {
addDescription(item.description)
}
item.component.border = JBUI.Borders.empty()
rightPanel.add(item.component)
addPreview(item.getCasePreview(null) ?: item.previewText, item.language)
if (treeNode.isLeaf) {
addPreview(item.getCasePreview(null) ?: item.previewText, item.language)
}
}
is ImmediateConfigurable.Case -> {
val parent = treeNode.parent as CheckedTreeNode