diff --git a/src/client/common/application/commands/reportIssueCommand.ts b/src/client/common/application/commands/reportIssueCommand.ts index f2b4f3ffc8c4..e5633f4a4389 100644 --- a/src/client/common/application/commands/reportIssueCommand.ts +++ b/src/client/common/application/commands/reportIssueCommand.ts @@ -105,15 +105,18 @@ export class ReportIssueCommandHandler implements IExtensionSingleActivationServ const installedExtensions = getExtensions() .filter((extension) => !extension.id.startsWith('vscode.')) .sort((a, b) => { - if (a.packageJSON.displayName && b.packageJSON.displayName) { - return a.packageJSON.displayName.localeCompare(b.packageJSON.displayName); + if (a.packageJSON.name && b.packageJSON.name) { + return a.packageJSON.name.localeCompare(b.packageJSON.name); } return a.id.localeCompare(b.id); }) - .map( - (extension) => - `|${extension.packageJSON.displayName}|${extension.id}|${extension.packageJSON.version}|`, - ); + .map((extension) => { + let publisher: string = extension.packageJSON.publisher as string; + if (publisher) { + publisher = publisher.substring(0, 3); + } + return `|${extension.packageJSON.name}|${publisher}|${extension.packageJSON.version}|`; + }); await this.commandManager.executeCommand('workbench.action.openIssueReporter', { extensionId: 'ms-python.python', diff --git a/src/test/common/application/commands/issueUserDataTemplateVenv1.md b/src/test/common/application/commands/issueUserDataTemplateVenv1.md index 9c1aac03cf52..2353d7b9f181 100644 --- a/src/test/common/application/commands/issueUserDataTemplateVenv1.md +++ b/src/test/common/application/commands/issueUserDataTemplateVenv1.md @@ -26,5 +26,5 @@ pipenvPath: "" |Extension Name|Extension Id|Version| |---|---|---| -|Python|ms-python.python|2020.2| +|python|ms-|2020.2| diff --git a/src/test/common/application/commands/issueUserDataTemplateVenv2.md b/src/test/common/application/commands/issueUserDataTemplateVenv2.md index fa218fc35b04..98ff2a880cdf 100644 --- a/src/test/common/application/commands/issueUserDataTemplateVenv2.md +++ b/src/test/common/application/commands/issueUserDataTemplateVenv2.md @@ -23,5 +23,5 @@ venvPath: "" |Extension Name|Extension Id|Version| |---|---|---| -|Python|ms-python.python|2020.2| +|python|ms-|2020.2| diff --git a/src/test/common/application/commands/reportIssueCommand.unit.test.ts b/src/test/common/application/commands/reportIssueCommand.unit.test.ts index 50701ecdf4c6..b1884fa83c21 100644 --- a/src/test/common/application/commands/reportIssueCommand.unit.test.ts +++ b/src/test/common/application/commands/reportIssueCommand.unit.test.ts @@ -101,6 +101,8 @@ suite('Report Issue Command', () => { packageJSON: { displayName: 'Python', version: '2020.2', + name: 'python', + publisher: 'ms-python', }, }, ]);