Skip to content

Commit

Permalink
Use new report issue command api
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacamargo25 committed Mar 7, 2024
1 parent 75ed73e commit 8b6e80b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"testObserver",
"quickPickItemTooltip",
"terminalDataWriteEvent",
"terminalExecuteCommandEvent"
"terminalExecuteCommandEvent",
"contribIssueReporter"
],
"author": {
"name": "Microsoft Corporation"
Expand Down Expand Up @@ -1245,6 +1246,11 @@
}
],
"menus": {
"issue/reporter": [
{
"command": "python.reportIssue"
}
],
"commandPalette": [
{
"category": "Python",
Expand Down
6 changes: 6 additions & 0 deletions src/client/common/application/commands/reportIssueCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ export class ReportIssueCommandHandler implements IExtensionSingleActivationServ
hasMultipleFoldersText,
userSettings,
),
data: `<!-- **NOTE**: Everything below except Python output panel is auto-generated; no editing required. Please do provide Python output panel. -->
# Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.10.13
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
- Value of the python.languageServer setting: Default`,
});
sendTelemetryEvent(EventName.USE_REPORT_ISSUE_COMMAND, undefined, {});
}
Expand Down

0 comments on commit 8b6e80b

Please sign in to comment.