Skip to content

Commit e71ae5c

Browse files
Fix upload bug report (#1931)
1 parent 0127ee2 commit e71ae5c

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
@@ -21,7 +21,7 @@ const extensions =
2121
vscode.extensions.all.filter((element) => element.packageJSON.isBuiltin === false)
2222
.sort((leftside, rightside): number => {
2323
if (leftside.packageJSON.name.toLowerCase() < rightside.packageJSON.name.toLowerCase()) {
24-
return -1;
24+
return -1;
2525
}
2626
if (leftside.packageJSON.name.toLowerCase() > rightside.packageJSON.name.toLowerCase()) {
2727
return 1;
@@ -37,37 +37,43 @@ export class GenerateBugReportFeature implements IFeature {
3737
constructor(private sessionManager: SessionManager) {
3838
this.command = vscode.commands.registerCommand("PowerShell.GenerateBugReport", () => {
3939

40-
const body = encodeURIComponent(`## Issue Description ##
40+
const body = `Issue Description
41+
=====
4142
4243
I am experiencing a problem with...
4344
44-
## Attached Logs ##
45+
Attached Logs
46+
=====
4547
4648
Follow the instructions in the [README](https://github.com/PowerShell/vscode-powershell#reporting-problems) about
4749
capturing and sending logs.
4850
49-
## Environment Information ##
51+
Environment Information
52+
=====
5053
51-
### Visual Studio Code ###
54+
Visual Studio Code
55+
-----
5256
5357
| Name | Version |
5458
| --- | --- |
5559
| Operating System | ${os.type()} ${os.arch()} ${os.release()} |
5660
| VSCode | ${vscode.version}|
5761
| PowerShell Extension Version | ${extensionVersion} |
5862
59-
### PowerShell Information ###
63+
PowerShell Information
64+
-----
6065
6166
${this.getRuntimeInfo()}
6267
63-
### Visual Studio Code Extensions ###
68+
Visual Studio Code Extensions
69+
-----
6470
6571
<details><summary>Visual Studio Code Extensions(Click to Expand)</summary>
6672
6773
${this.generateExtensionTable(extensions)}
6874
</details>
6975
70-
`);
76+
`;
7177

7278
const encodedBody = encodeURIComponent(body);
7379
const fullUrl = `${issuesUrl}${queryStringPrefix}body=${encodedBody}`;
@@ -80,7 +86,7 @@ ${this.generateExtensionTable(extensions)}
8086
}
8187

8288
public setLanguageClient(languageclient: LanguageClient) {
83-
// Elimiinate tslint warning.
89+
// Eliminate tslint warning.
8490
}
8591

8692
private generateExtensionTable(installedExtensions): string {

0 commit comments

Comments
 (0)