新增cd命令

This commit is contained in:
Pan Qiancheng 2024-10-24 17:51:52 +08:00
parent ec114eeaaa
commit b230afa765
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ export function createFileWatcher(context: vscode.ExtensionContext) {
// 执行npm run make:domain命令
const terminal =
vscode.window.createTerminal('Make Domain');
const projectPath = pathConfig.projectHome;
terminal.sendText(`cd ${projectPath}`);
terminal.sendText('npm run make:domain');
terminal.show();
}