Skip to content

Commit 76c304d

Browse files
committed
Fix nested project handling
1 parent dbf1084 commit 76c304d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lsp-treemacs.el

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -657,19 +657,20 @@
657657

658658
(defun lsp-treemacs-deps--get-children (dep)
659659
(lsp-treemacs-deps-with-jdtls
660-
(-let (((&hash "projectUri" project-uri "rootPath" root-path "path" "kind" "name") dep))
660+
(-let* (((&hash "projectUri" project-uri "rootPath" root-path "path" "kind" "name" "uri") dep)
661+
(project-uri (if (eq kind 2) uri project-uri)))
661662
(unless (or (= kind 6)
662663
(= kind 8))
663664
(->> (lsp-send-execute-command
664665
"java.getPackageData"
665-
(vector (ht ("kind" kind)
666-
("path" (unless (eq kind 2)
667-
(if (= 5 kind)
668-
name
669-
path)))
666+
(vector (ht ("kind" kind)
667+
("path" (unless (eq kind 2)
668+
(if (= 5 kind)
669+
name
670+
path)))
670671
("rootPath" (unless (eq kind 2)
671672
(or root-path path)))
672-
("projectUri" project-uri))))
673+
("projectUri" project-uri))))
673674
(-mapcat (lambda (inner-dep)
674675
(puthash "projectUri" project-uri inner-dep)
675676
(when (= kind 4)

0 commit comments

Comments
 (0)