chore: fix env variables (#1204)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Ralph Khreish
2025-09-13 01:34:50 +02:00
committed by GitHub
parent 83af314879
commit 799d1d2cce
9 changed files with 84 additions and 51 deletions

View File

@@ -363,20 +363,25 @@ export class WebviewManager {
case 'openTerminal':
// Open VS Code terminal for task execution
this.logger.info(`Opening terminal for task ${data.taskId}: ${data.taskTitle}`);
this.logger.log(
`Opening terminal for task ${data.taskId}: ${data.taskTitle}`
);
try {
const terminal = vscode.window.createTerminal({
name: `Task ${data.taskId}: ${data.taskTitle}`,
cwd: this.workspaceRoot
cwd: vscode.workspace.workspaceFolders?.[0]?.uri.fsPath
});
terminal.show();
this.logger.info('Terminal created and shown successfully');
this.logger.log('Terminal created and shown successfully');
response = { success: true };
} catch (error) {
this.logger.error('Failed to create terminal:', error);
response = { success: false, error: error.message };
response = {
success: false,
error: error instanceof Error ? error.message : 'Unknown error'
};
}
break;