An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Restore code language list when clearing search
Daniela3180a8046ba
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 9fcc592a61..3940c78c40 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -2025,7 +2025,7 @@ export class Toolbar {inputElement.addEventListener("input", (event) => {const value = inputElement.value.trim();- let matchLanguages;+ let matchLanguages = hljsLanguages;let html = `<div data-id="clearLanguage" class="b3-list-item">${window.siyuan.languages.clear}</div>`;let isMatchLanguages = false;// Sort@@ -2054,7 +2054,7 @@ export class Toolbar {}if (areProtylePluginExtensionsEnabled(protyle) && hasPluginSubscriber("code-language-update")) {- const eventDetail = {languages: value ? matchLanguages : hljsLanguages, type: "match", value, listElement};+ const eventDetail = {languages: matchLanguages, type: "match", value, listElement};emitToPlugins("code-language-update", eventDetail);matchLanguages = eventDetail.languages;}