diff --git a/src/features/GenerateBugReport.ts b/src/features/GenerateBugReport.ts index 38d52bc2fd..cbbf462105 100644 --- a/src/features/GenerateBugReport.ts +++ b/src/features/GenerateBugReport.ts @@ -21,7 +21,7 @@ const extensions = vscode.extensions.all.filter((element) => element.packageJSON.isBuiltin === false) .sort((leftside, rightside): number => { if (leftside.packageJSON.name.toLowerCase() < rightside.packageJSON.name.toLowerCase()) { - return -1; + return -1; } if (leftside.packageJSON.name.toLowerCase() > rightside.packageJSON.name.toLowerCase()) { return 1; @@ -37,18 +37,22 @@ export class GenerateBugReportFeature implements IFeature { constructor(private sessionManager: SessionManager) { this.command = vscode.commands.registerCommand("PowerShell.GenerateBugReport", () => { - const body = encodeURIComponent(`## Issue Description ## + const body = `Issue Description +===== I am experiencing a problem with... -## Attached Logs ## +Attached Logs +===== Follow the instructions in the [README](https://github.com/PowerShell/vscode-powershell#reporting-problems) about capturing and sending logs. -## Environment Information ## +Environment Information +===== -### Visual Studio Code ### +Visual Studio Code +----- | Name | Version | | --- | --- | @@ -56,18 +60,20 @@ capturing and sending logs. | VSCode | ${vscode.version}| | PowerShell Extension Version | ${extensionVersion} | -### PowerShell Information ### +PowerShell Information +----- ${this.getRuntimeInfo()} -### Visual Studio Code Extensions ### +Visual Studio Code Extensions +-----
Visual Studio Code Extensions(Click to Expand) ${this.generateExtensionTable(extensions)}
-`); +`; const encodedBody = encodeURIComponent(body); const fullUrl = `${issuesUrl}${queryStringPrefix}body=${encodedBody}`; @@ -80,7 +86,7 @@ ${this.generateExtensionTable(extensions)} } public setLanguageClient(languageclient: LanguageClient) { - // Elimiinate tslint warning. + // Eliminate tslint warning. } private generateExtensionTable(installedExtensions): string {