Skip to content

Commit

Permalink
Handle undefined extension displayName, fixes #46727
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Macfarlane committed Mar 27, 2018
1 parent d4f0c64 commit 163b417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/code/electron-browser/issue/issueReporterMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ export class IssueReporter extends Disposable {
}

private updateExtensionSelector(extensions: ILocalExtension[]): void {
const makeOption = (extension: ILocalExtension) => `<option value="${extension.identifier.id}">${escape(extension.manifest.displayName)}</option>`;
const makeOption = (extension: ILocalExtension) => `<option value="${extension.identifier.id}">${escape(extension.manifest.displayName || extension.manifest.name || '')}</option>`;
const extensionsSelector = document.getElementById('extension-selector');
extensionsSelector.innerHTML = '<option></option>' + extensions.map(makeOption).join('\n');

Expand Down

0 comments on commit 163b417

Please sign in to comment.