mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 改进打开虚拟引用后加载文档的性能 https://github.com/siyuan-note/siyuan/issues/7378
This commit is contained in:
parent
7d05f4e8c7
commit
e89f706864
5 changed files with 9 additions and 16 deletions
|
|
@ -29,11 +29,6 @@ import (
|
|||
)
|
||||
|
||||
func QueryVirtualRefKeywords(name, alias, anchor, doc bool) (ret []string) {
|
||||
ret, ok := getVirtualRefKeywordsCache()
|
||||
if ok {
|
||||
return ret
|
||||
}
|
||||
|
||||
if name {
|
||||
ret = append(ret, queryNames()...)
|
||||
}
|
||||
|
|
@ -50,7 +45,6 @@ func QueryVirtualRefKeywords(name, alias, anchor, doc bool) (ret []string) {
|
|||
sort.SliceStable(ret, func(i, j int) bool {
|
||||
return len(ret[i]) >= len(ret[j])
|
||||
})
|
||||
setVirtualRefKeywords(ret)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue