Skip to content

Commit

Permalink
Mark leaf nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurnevsky committed Sep 29, 2023
1 parent 4102602 commit f17a62c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lsp-metals-treeview.el
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,13 @@ collapsed or expanded."
((&TreeViewNode :view-id :node-uri?) node))
(lsp-metals-treeview--get-children view-id node-uri?))
:child-type 'metals-node
:more-properties `(:node ,item :eldoc ,(lsp-get item :tooltip))
:more-properties `(:node
,item
;; TODO: this is not used anymore
:eldoc
,(lsp-get item :tooltip)
:leaf
,(not (lsp-get item :collapseState)))
:on-expand (lsp-metals-treeview--on-node-collapsed
(treemacs-button-get btn :node) nil)
:on-collapse (lsp-metals-treeview--on-node-collapsed
Expand Down

0 comments on commit f17a62c

Please sign in to comment.