From f17a62c7d6ab3eb833550612db30b15733f83ec1 Mon Sep 17 00:00:00 2001 From: Evgeny Kurnevsky <kurnevsky@gmail.com> Date: Fri, 29 Sep 2023 14:05:43 +0300 Subject: [PATCH] Mark leaf nodes. --- lsp-metals-treeview.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lsp-metals-treeview.el b/lsp-metals-treeview.el index e518856..74eab02 100644 --- a/lsp-metals-treeview.el +++ b/lsp-metals-treeview.el @@ -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