Skip to content

Commit

Permalink
Display spaces if an icon is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurnevsky committed Sep 30, 2023
1 parent 23b73f9 commit 8b63636
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lsp-metals-treeview.el
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,9 @@ node is expanding based on OPEN-FORM? being True. Check if icon matches
one of our icons for the Metals theme and if not display a standard +/-
if this is an expandable node. If the node isn't expandable for now
do not show an icon."
(-if-let ((&TreeViewNode :icon?) metals-node)
(treemacs-get-icon-value icon? nil lsp-metals-treeview-theme)
(-if-let* (((&TreeViewNode :icon?) metals-node)
(icon (treemacs-get-icon-value icon? nil lsp-metals-treeview-theme)))
icon
(if (lsp-get metals-node :collapseState)
(treemacs-get-icon-value
(if open-form? 'expanded 'collapsed)
Expand Down

0 comments on commit 8b63636

Please sign in to comment.