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

@@ -709,17 +709,17 @@
(remove (fn [e] (contains? exclude-ids (:block/uuid e)))))]
excluded-options)
(contains? #{:class :property} property-type)
(let [classes (cond->
(model/get-all-classes
repo
{:except-root-class? true
:except-private-tags? (not (contains? #{:logseq.property/template-applied-to} (:db/ident property)))})
(not (or (and (entity-util/page? block) (not (ldb/internal-page? block))) (:logseq.property/created-from-property block)))
(conj (db/entity :logseq.class/Page)))]
(if (= property-type :class)
classes
(property-handler/get-class-property-choices)))
(= :class property-type)
(cond->
(model/get-all-classes
repo
{:except-root-class? true
:except-private-tags? (not (contains? #{:logseq.property/template-applied-to} (:db/ident property)))})
(not (or (and (entity-util/page? block) (not (ldb/internal-page? block))) (:logseq.property/created-from-property block)))
(conj (db/entity :logseq.class/Page)))
(= :property property-type)
(property-handler/get-class-property-choices)
(seq classes)
(->>