Skip to content

Commit

Permalink
Fix #71096
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Oct 25, 2021
1 parent 1100001 commit 31ca4cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vs/base/browser/ui/selectBox/selectBoxCustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,12 +880,13 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi

private updateDetail(selectedIndex: number): void {
this.selectionDetailsPane.innerText = '';
const description = this.options[selectedIndex].description;
const descriptionIsMarkdown = this.options[selectedIndex].descriptionIsMarkdown;
const option = this.options[selectedIndex];
const description = option?.description ?? '';
const descriptionIsMarkdown = option?.descriptionIsMarkdown ?? false;

if (description) {
if (descriptionIsMarkdown) {
const actionHandler = this.options[selectedIndex].descriptionMarkdownActionHandler;
const actionHandler = option.descriptionMarkdownActionHandler;
this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(description, actionHandler));
} else {
this.selectionDetailsPane.innerText = description;
Expand Down

0 comments on commit 31ca4cd

Please sign in to comment.