fix: show tag's extends when auto-complete or setting extends

fixes https://github.com/logseq/db-test/issues/466
This commit is contained in:
Tienson Qin
2025-09-09 16:29:19 +08:00
parent 4586f9bf0f
commit 1849d7a96a
4 changed files with 22 additions and 15 deletions

View File

@@ -146,7 +146,11 @@
(or (some-> (:block/raw-title block-e) (ldb/inline-tag? t))
(ldb/private-tags (:db/ident t))))
(map (fn [tag] (if (number? tag) (db/entity tag) tag)) (:block/tags block)))]
(if (seq tags)
(cond
(ldb/class? block)
(ldb/get-class-title-with-extends block)
(seq tags)
(str (:block/title block)
" "
(string/join
@@ -155,6 +159,7 @@
(when-let [title (:block/title tag)]
(str "#" title)))
tags)))
:else
(:block/title block))))
(defn edit-block!