Skip to content

Commit 5e1b42c

Browse files
dkwon17fbricon
authored andcommitted
Show groupId and artifactId in extensions picker
Signed-off-by: David Kwon <[email protected]>
1 parent 779c402 commit 5e1b42c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/wizards/generateProject/ExtensionsPicker.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,16 @@ export class ExtensionsPicker {
219219
}
220220

221221
items = items.concat(this.selectedExtensions.concat(this.unselectedExtensions).map((it: QExtension) => {
222+
let description: string;
223+
if (this.showDescription) {
224+
description = (it.isRequired ? ' (This is a required extension)' : ` (${it.groupId}:${it.artifactId})`);
225+
} else {
226+
description = it.category;
227+
}
228+
222229
const quickPickItem: QuickPickExtensionItem = {
223230
type: Type.Extension,
224-
description: it.category + (it.isRequired ? ' - (This is a required extension)' : ''),
231+
description,
225232
label: `${this.isSelected(it) ? '$(check) ' : ''}${it.name}`,
226233
extension: it
227234
};

0 commit comments

Comments
 (0)