feat: added vscode start task button (#1201)

Co-authored-by: Carlos Montoya <carlos@Carloss-MacBook-Pro.local>
Co-authored-by: Carlos Montoya <los@losmontoya.com>
This commit is contained in:
losolosol
2025-09-11 20:35:57 -07:00
committed by GitHub
parent dd03374496
commit 83af314879
4 changed files with 79 additions and 11 deletions

View File

@@ -361,6 +361,25 @@ export class WebviewManager {
}
return;
case 'openTerminal':
// Open VS Code terminal for task execution
this.logger.info(`Opening terminal for task ${data.taskId}: ${data.taskTitle}`);
try {
const terminal = vscode.window.createTerminal({
name: `Task ${data.taskId}: ${data.taskTitle}`,
cwd: this.workspaceRoot
});
terminal.show();
this.logger.info('Terminal created and shown successfully');
response = { success: true };
} catch (error) {
this.logger.error('Failed to create terminal:', error);
response = { success: false, error: error.message };
}
break;
default:
throw new Error(`Unknown message type: ${type}`);
}