@@ -82,8 +82,8 @@ export class QuickOpenEntry {
8282 /**
8383 * The options for the label to use for this entry
8484 */
85- getLabelOptions ( ) : IIconLabelValueOptions | null {
86- return null ;
85+ getLabelOptions ( ) : IIconLabelValueOptions | undefined {
86+ return undefined ;
8787 }
8888
8989 /**
@@ -97,15 +97,15 @@ export class QuickOpenEntry {
9797 /**
9898 * Detail information about the entry that is optional and can be shown below the label
9999 */
100- getDetail ( ) : string | null {
101- return null ;
100+ getDetail ( ) : string | undefined {
101+ return undefined ;
102102 }
103103
104104 /**
105105 * The icon of the entry to identify it from others in the list
106106 */
107- getIcon ( ) : string | null {
108- return null ;
107+ getIcon ( ) : string | undefined {
108+ return undefined ;
109109 }
110110
111111 /**
@@ -118,8 +118,8 @@ export class QuickOpenEntry {
118118 /**
119119 * A tooltip to show when hovering over the entry.
120120 */
121- getTooltip ( ) : string | null {
122- return null ;
121+ getTooltip ( ) : string | undefined {
122+ return undefined ;
123123 }
124124
125125 /**
@@ -233,23 +233,23 @@ export class QuickOpenEntryGroup extends QuickOpenEntry {
233233 return this . entry ? this . entry . getLabel ( ) : super . getLabel ( ) ;
234234 }
235235
236- getLabelOptions ( ) : IIconLabelValueOptions | null {
236+ getLabelOptions ( ) : IIconLabelValueOptions | undefined {
237237 return this . entry ? this . entry . getLabelOptions ( ) : super . getLabelOptions ( ) ;
238238 }
239239
240240 getAriaLabel ( ) : string {
241241 return this . entry ? this . entry . getAriaLabel ( ) : super . getAriaLabel ( ) ;
242242 }
243243
244- getDetail ( ) : string | null {
244+ getDetail ( ) : string | undefined {
245245 return this . entry ? this . entry . getDetail ( ) : super . getDetail ( ) ;
246246 }
247247
248248 getResource ( ) : URI | undefined {
249249 return this . entry ? this . entry . getResource ( ) : super . getResource ( ) ;
250250 }
251251
252- getIcon ( ) : string | null {
252+ getIcon ( ) : string | undefined {
253253 return this . entry ? this . entry . getIcon ( ) : super . getIcon ( ) ;
254254 }
255255
@@ -459,13 +459,13 @@ class Renderer implements IRenderer<QuickOpenEntry> {
459459 // Label
460460 const options : IIconLabelValueOptions = entry . getLabelOptions ( ) || Object . create ( null ) ;
461461 options . matches = labelHighlights || [ ] ;
462- options . title = types . withNullAsUndefined ( entry . getTooltip ( ) ) ;
462+ options . title = entry . getTooltip ( ) ;
463463 options . descriptionTitle = entry . getDescriptionTooltip ( ) || entry . getDescription ( ) ; // tooltip over description because it could overflow
464464 options . descriptionMatches = descriptionHighlights || [ ] ;
465465 data . label . setLabel ( types . withNullAsUndefined ( entry . getLabel ( ) ) , entry . getDescription ( ) , options ) ;
466466
467467 // Meta
468- data . detail . set ( types . withNullAsUndefined ( entry . getDetail ( ) ) , detailHighlights ) ;
468+ data . detail . set ( entry . getDetail ( ) , detailHighlights ) ;
469469
470470 // Keybinding
471471 data . keybinding . set ( entry . getKeybinding ( ) ! ) ;
0 commit comments