feat: add VS Code ChatGPT plugin config sync functionality

This commit is contained in:
Jason
2025-09-18 10:58:03 +08:00
parent b69d7f7979
commit 9bf216b102
7 changed files with 272 additions and 1 deletions

View File

@@ -159,6 +159,16 @@ export const tauriAPI = {
}
},
// 写入 VS Code 配置
writeVscodeSettings: async (baseUrl?: string): Promise<boolean> => {
try {
return await invoke("write_vscode_settings_command", { baseUrl });
} catch (error) {
console.error("写入 VS Code 配置失败:", error);
return false;
}
},
// 打开外部链接
openExternal: async (url: string): Promise<void> => {
try {