@@ -16,6 +16,7 @@ import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.j
16
16
import { URI } from '../../../../base/common/uri.js' ;
17
17
import { defaultCheckboxStyles } from '../../../theme/browser/defaultStyles.js' ;
18
18
import { isDark } from '../../../theme/common/theme.js' ;
19
+ import { escape } from '../../../../base/common/strings.js' ;
19
20
import { IThemeService } from '../../../theme/common/themeService.js' ;
20
21
import { IQuickTreeCheckboxEvent , IQuickTreeItem , IQuickTreeItemButtonEvent } from '../../common/quickInput.js' ;
21
22
import { quickInputButtonToAction } from '../quickInputUtils.js' ;
@@ -109,6 +110,17 @@ export class QuickInputTreeRenderer<T extends IQuickTreeItem> extends Disposable
109
110
const { labelHighlights : matches , descriptionHighlights : descriptionMatches , detailHighlights } = node . filterData || { } ;
110
111
111
112
// 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
+ }
112
124
templateData . label . setLabel (
113
125
quickTreeItem . label ,
114
126
quickTreeItem . description ,
@@ -118,7 +130,8 @@ export class QuickInputTreeRenderer<T extends IQuickTreeItem> extends Disposable
118
130
extraClasses : quickTreeItem . iconClasses ,
119
131
italic : quickTreeItem . italic ,
120
132
strikethrough : quickTreeItem . strikethrough ,
121
- labelEscapeNewLines : true
133
+ labelEscapeNewLines : true ,
134
+ descriptionTitle
122
135
}
123
136
) ;
124
137
0 commit comments