@@ -16,6 +16,7 @@ import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.j
1616import { URI } from '../../../../base/common/uri.js' ;
1717import { defaultCheckboxStyles } from '../../../theme/browser/defaultStyles.js' ;
1818import { isDark } from '../../../theme/common/theme.js' ;
19+ import { escape } from '../../../../base/common/strings.js' ;
1920import { IThemeService } from '../../../theme/common/themeService.js' ;
2021import { IQuickTreeCheckboxEvent , IQuickTreeItem , IQuickTreeItemButtonEvent } from '../../common/quickInput.js' ;
2122import { quickInputButtonToAction } from '../quickInputUtils.js' ;
@@ -109,6 +110,17 @@ export class QuickInputTreeRenderer<T extends IQuickTreeItem> extends Disposable
109110 const { labelHighlights : matches , descriptionHighlights : descriptionMatches , detailHighlights } = node . filterData || { } ;
110111
111112 // Label and Description
113+ let descriptionTitle : IManagedHoverTooltipMarkdownString | undefined ;
114+ // NOTE: If we bring back quick tool tips, we need to check that here like we do in the QuickInputListRenderer
115+ if ( quickTreeItem . description ) {
116+ descriptionTitle = {
117+ markdown : {
118+ value : escape ( quickTreeItem . description ) ,
119+ supportThemeIcons : true
120+ } ,
121+ markdownNotSupportedFallback : quickTreeItem . description
122+ } ;
123+ }
112124 templateData . label . setLabel (
113125 quickTreeItem . label ,
114126 quickTreeItem . description ,
@@ -118,7 +130,8 @@ export class QuickInputTreeRenderer<T extends IQuickTreeItem> extends Disposable
118130 extraClasses : quickTreeItem . iconClasses ,
119131 italic : quickTreeItem . italic ,
120132 strikethrough : quickTreeItem . strikethrough ,
121- labelEscapeNewLines : true
133+ labelEscapeNewLines : true ,
134+ descriptionTitle
122135 }
123136 ) ;
124137
0 commit comments