feat(settings): replicate the WorkBuddy general settings panel (TODO 10)

This commit is contained in:
xiaohan.yuan committed 2026-10-17 08:53:34 +08:00
1 parent 401926d7eb
commit 7b68d9eb25
21 files changed
+1150 -11

No files matched your search

+7
View File
@@ -106,6 +106,13 @@ const api: YCodeApi = {
get: () => ipcRenderer.invoke('config:get'),
update: (patch: ConfigPatchLike) => ipcRenderer.invoke('config:update', patch)
},
general: {
get: (options) => ipcRenderer.invoke('general:get', options),
update: (patch) => ipcRenderer.invoke('general:update', patch),
openFolder: (kind) => ipcRenderer.invoke('general:openFolder', kind),
changeWorkspaceRoot: (path) => ipcRenderer.invoke('general:changeWorkspaceRoot', path),
openSystemNotificationSettings: () => ipcRenderer.invoke('general:open-system-notification-settings')
},
workspace: {
get: () => ipcRenderer.invoke('workspace:get'),
choose: () => ipcRenderer.invoke('workspace:choose'),