-
Notifications
You must be signed in to change notification settings - Fork 29
Add Python Environments report issue command #525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: eleanorjboyd <[email protected]>
Co-authored-by: eleanorjboyd <[email protected]>
|
|
||
| try { | ||
| // Extension version | ||
| const extensionVersion = context.extension?.packageJSON?.version || 'unknown'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be useful to get the version of the python extension too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added Python extension version to the report issue output in commit fd9b8c9. The function now collects both the Python Environments extension version and the Python extension version to help with debugging compatibility issues.
Co-authored-by: eleanorjboyd <[email protected]>
| info.push(`Extension Version: ${extensionVersion}`); | ||
|
|
||
| // Python extension version | ||
| const pythonExtension = extensions.getExtension('ms-python.python'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karthiknadig ideas on other info we need that will be useful? Still need test everything it is getting here but wanted to get your thoughts on if there is any info I can add
Example |
Pull request was closed
This PR adds a "Python Environments: Report Issue" command that integrates with VS Code's built-in issue reporter, similar to the existing "Python : Report Issue" and "Python Debugger : Report Issue" commands. ## Changes Made ### Command Registration - Added `python-envs.reportIssue` command to `package.json` - Added localized title "Report Issue" to `package.nls.json` ### Implementation - Created `collectEnvironmentInfo()` helper function that automatically gathers: - Extension version - Registered environment managers (id and display name) - Available Python environments (up to 10 listed with total count) - Python projects and their assigned environments - Current extension settings (non-sensitive data only) - Integrated with VS Code's `workbench.action.openIssueReporter` command - Formats collected information in markdown with collapsible details section Fixes #162. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: eleanorjboyd <[email protected]>
This PR adds a "Python Environments: Report Issue" command that integrates with VS Code's built-in issue reporter, similar to the existing "Python : Report Issue" and "Python Debugger : Report Issue" commands.
Changes Made
Command Registration
python-envs.reportIssuecommand topackage.jsonpackage.nls.jsonImplementation
collectEnvironmentInfo()helper function that automatically gathers:workbench.action.openIssueReportercommandFixes #162.