Skip to content

Commit 3851448

Browse files
committed
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
1 parent b15956a commit 3851448

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/contributes/commands.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,15 @@ export function registerInstallCommandsCommand(
193193
async () => {
194194
const homePath = process.env.HOME || process.env.USERPROFILE || "";
195195
const sysDirPath = path.join(homePath, ".chat", "scripts");
196+
const sysMericoDirPath = path.join(homePath, ".chat", "scripts", "merico");
196197
const pluginDirPath = path.join(
197198
UiUtilWrapper.extensionPath(),
198199
"workflowsCommands"
199200
); // Adjust this path as needed
200201

201202
const dcClient = new DevChatClient();
202203

203-
if (!fs.existsSync(sysDirPath)) {
204+
if (!fs.existsSync(sysMericoDirPath)) {
204205
await copyDirectory(pluginDirPath, sysDirPath);
205206
}
206207

0 commit comments

Comments
 (0)