Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

Expose openSetting func to plugin APIs (#13761)

sommermorgentraum514e4da537b4
diff --git a/.gitignore b/.gitignore
index bc40458008..966706a1ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,7 @@
app/node_modules
app/stage/build
app/build
+app/SiYuan-Kernel
app/src/types/dist
app/kernel*
ios
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index bf5eb9730d..6d6eac7469 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -21,6 +21,7 @@ import {lockScreen, exitSiYuan} from "../dialog/processSystem";
import {Model} from "../layout/Model";
import {getDockByType} from "../layout/tabUtil";
import {getAllEditor, getAllModels} from "../layout/getAll";
+import {openSetting} from "../config";
let openTab;
let openWindow;
@@ -199,5 +200,6 @@ export const API = {
Setting,
getAllEditor,
getAllModels,
- platformUtils
+ platformUtils,
+ openSetting
};