Skip to content

Commit 355e0a8

Browse files
committed
Issue reporter uses name and publisher id
1 parent e789348 commit 355e0a8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/client/common/application/commands/reportIssueCommand.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,18 @@ export class ReportIssueCommandHandler implements IExtensionSingleActivationServ
105105
const installedExtensions = getExtensions()
106106
.filter((extension) => !extension.id.startsWith('vscode.'))
107107
.sort((a, b) => {
108-
if (a.packageJSON.displayName && b.packageJSON.displayName) {
109-
return a.packageJSON.displayName.localeCompare(b.packageJSON.displayName);
108+
if (a.packageJSON.name && b.packageJSON.name) {
109+
return a.packageJSON.name.localeCompare(b.packageJSON.name);
110110
}
111111
return a.id.localeCompare(b.id);
112112
})
113-
.map(
114-
(extension) =>
115-
`|${extension.packageJSON.displayName}|${extension.id}|${extension.packageJSON.version}|`,
116-
);
113+
.map((extension) => {
114+
let publisher: string = extension.packageJSON.publisher as string;
115+
if (publisher) {
116+
publisher = publisher.substring(0, 3);
117+
}
118+
return `|${extension.packageJSON.name}|${publisher}|${extension.packageJSON.version}|`;
119+
});
117120

118121
await this.commandManager.executeCommand('workbench.action.openIssueReporter', {
119122
extensionId: 'ms-python.python',

0 commit comments

Comments
 (0)