Skip to content

Commit 8590614

Browse files
committed
fixes
1 parent 8f82033 commit 8590614

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/extension.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,25 +448,27 @@ export async function activate(context: ExtensionContext): Promise<PythonEnviron
448448
commands.registerCommand('python-envs.reportIssue', async () => {
449449
try {
450450
// Prompt for issue title
451-
const title = (await window.showInputBox({
451+
const rawTitle = await window.showInputBox({
452452
title: l10n.t('Report Issue - Title'),
453453
prompt: l10n.t('Enter a brief title for the issue'),
454454
placeHolder: l10n.t('e.g., Environment not detected, activation fails, etc.'),
455455
ignoreFocusOut: true,
456-
})).trim();
456+
});
457+
const title = rawTitle?.trim();
457458

458459
if (!title) {
459460
// User cancelled or provided empty title
460461
return;
461462
}
462463

463464
// Prompt for issue description
464-
const description = (await window.showInputBox({
465+
const rawDescription = await window.showInputBox({
465466
title: l10n.t('Report Issue - Description'),
466467
prompt: l10n.t('Describe the issue in more detail'),
467468
placeHolder: l10n.t('Provide additional context about what happened...'),
468469
ignoreFocusOut: true,
469-
})).trim();
470+
});
471+
const description = rawDescription?.trim();
470472

471473
if (!description) {
472474
// User cancelled or provided empty description

0 commit comments

Comments
 (0)