Skip to content

Commit 0d992ad

Browse files
Fix upload bug report (#1931)
1 parent 13f7387 commit 0d992ad

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/features/GenerateBugReport.ts

+15-9
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const extensions =
1919
vscode.extensions.all.filter((element) => element.packageJSON.isBuiltin === false)
2020
.sort((leftside, rightside): number => {
2121
if (leftside.packageJSON.name.toLowerCase() < rightside.packageJSON.name.toLowerCase()) {
22-
return -1;
22+
return -1;
2323
}
2424
if (leftside.packageJSON.name.toLowerCase() > rightside.packageJSON.name.toLowerCase()) {
2525
return 1;
@@ -35,37 +35,43 @@ export class GenerateBugReportFeature implements IFeature {
3535
constructor(private sessionManager: SessionManager) {
3636
this.command = vscode.commands.registerCommand("PowerShell.GenerateBugReport", () => {
3737

38-
const body = encodeURIComponent(`## Issue Description ##
38+
const body = `Issue Description
39+
=====
3940
4041
I am experiencing a problem with...
4142
42-
## Attached Logs ##
43+
Attached Logs
44+
=====
4345
4446
Follow the instructions in the [README](https://github.com/PowerShell/vscode-powershell#reporting-problems) about
4547
capturing and sending logs.
4648
47-
## Environment Information ##
49+
Environment Information
50+
=====
4851
49-
### Visual Studio Code ###
52+
Visual Studio Code
53+
-----
5054
5155
| Name | Version |
5256
| --- | --- |
5357
| Operating System | ${os.type()} ${os.arch()} ${os.release()} |
5458
| VSCode | ${vscode.version}|
5559
| PowerShell Extension Version | ${sessionManager.HostVersion} |
5660
57-
### PowerShell Information ###
61+
PowerShell Information
62+
-----
5863
5964
${this.getRuntimeInfo()}
6065
61-
### Visual Studio Code Extensions ###
66+
Visual Studio Code Extensions
67+
-----
6268
6369
<details><summary>Visual Studio Code Extensions(Click to Expand)</summary>
6470
6571
${this.generateExtensionTable(extensions)}
6672
</details>
6773
68-
`);
74+
`;
6975

7076
const encodedBody = encodeURIComponent(body);
7177
const fullUrl = `${issuesUrl}${queryStringPrefix}body=${encodedBody}`;
@@ -78,7 +84,7 @@ ${this.generateExtensionTable(extensions)}
7884
}
7985

8086
public setLanguageClient(languageclient: LanguageClient) {
81-
// Elimiinate tslint warning.
87+
// Eliminate tslint warning.
8288
}
8389

8490
private generateExtensionTable(installedExtensions): string {

0 commit comments

Comments
 (0)