From 3851448ec0cee5ed15ed16a135dccd9509ba24e1 Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Tue, 10 Sep 2024 11:32:23 +0800 Subject: [PATCH] fix: Correct workflow directory path - Added missing directory path for Merico scripts - Updated directory existence check to use the new path - Ensured workflow commands are correctly installed --- src/contributes/commands.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/contributes/commands.ts b/src/contributes/commands.ts index 83f5056..8eda1db 100644 --- a/src/contributes/commands.ts +++ b/src/contributes/commands.ts @@ -193,6 +193,7 @@ export function registerInstallCommandsCommand( async () => { const homePath = process.env.HOME || process.env.USERPROFILE || ""; const sysDirPath = path.join(homePath, ".chat", "scripts"); + const sysMericoDirPath = path.join(homePath, ".chat", "scripts", "merico"); const pluginDirPath = path.join( UiUtilWrapper.extensionPath(), "workflowsCommands" @@ -200,7 +201,7 @@ export function registerInstallCommandsCommand( const dcClient = new DevChatClient(); - if (!fs.existsSync(sysDirPath)) { + if (!fs.existsSync(sysMericoDirPath)) { await copyDirectory(pluginDirPath, sysDirPath); }