You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<img width="2107" height="1450" alt="image"
src="https://github.com/user-attachments/assets/582b619f-bcdd-4d10-9f49-cd0ebf3cafa8"
/>
Added confirmation step to issue reporter to make intent clear to users
and avoid accidental issue creation
This pull request makes improvements to user interaction and code
organization in the `src/extension.ts` file. The main changes include
adding a confirmation dialog before opening the issue reporter and
making a small adjustment to the import order for better code clarity.
**User Experience Improvements:**
* Added a confirmation dialog that asks users to confirm before opening
the issue reporter, reducing the chance of accidental submissions. The
dialog appears after the user provides a description and only proceeds
if they confirm.
* Updated the description validation to require at least three
characters, preventing empty or too-short submissions.
**Code Organization:**
* Reordered the import of `copyPathToClipboard` for improved consistency
and readability in the import section.
issueBody: `## Description\n${description}\n\n## Steps to Reproduce\n1. \n2. \n3. \n\n## Expected Behavior\n\n\n## Actual Behavior\n\n\n<!-- The following information was automatically generated -->\n\n<details>\n<summary>Environment Information</summary>\n\n\`\`\`\n${issueData}\n\`\`\`\n\n</details>`,
546
-
});
547
-
}catch(error){
548
-
window.showErrorMessage(`Failed to open issue reporter: ${error}`);
'To help the Python Environments team investigate, VS Code will collect details about your Python environments and projects and open a prefilled GitHub issue. You can review and edit it before submitting.',
issueBody: `## Description\n${description}\n\n## Steps to Reproduce\n1. \n2. \n3. \n\n## Expected Behavior\n\n\n## Actual Behavior\n\n\n<!-- The following information was automatically generated -->\n\n<details>\n<summary>Environment Information</summary>\n\n\`\`\`\n${issueData}\n\`\`\`\n\n</details>`,
70
+
});
71
+
}catch(error){
72
+
traceError('Failed to open issue reporter',error);
73
+
awaitwindowApis.showErrorMessage(l10n.t('Failed to open the issue reporter. Please try again.'));
'To help the Python Environments team investigate, VS Code will collect details about your Python environments and projects and open a prefilled GitHub issue. You can review and edit it before submitting.',
0 commit comments