@@ -237,8 +237,11 @@ export class JSONCompletion {
237
237
insertText : this . getInsertTextForProperty ( key , propertySchema , addValue , separatorAfter ) ,
238
238
insertTextFormat : InsertTextFormat . Snippet ,
239
239
filterText : this . getFilterTextForValue ( key ) ,
240
- documentation : this . fromMarkup ( propertySchema . markdownDescription ) || propertySchema . description || '' ,
240
+ documentation : this . fromMarkup ( propertySchema . markdownDescription ) || propertySchema . description || ''
241
241
} ;
242
+ if ( propertySchema . completionDetail !== undefined ) {
243
+ proposal . detail = propertySchema . completionDetail ;
244
+ }
242
245
if ( propertySchema . suggestSortText !== undefined ) {
243
246
proposal . sortText = propertySchema . suggestSortText ;
244
247
}
@@ -261,8 +264,11 @@ export class JSONCompletion {
261
264
insertText : this . getInsertTextForProperty ( name , undefined , addValue , separatorAfter ) ,
262
265
insertTextFormat : InsertTextFormat . Snippet ,
263
266
filterText : this . getFilterTextForValue ( name ) ,
264
- documentation : enumDescription || this . fromMarkup ( schemaPropertyNames . markdownDescription ) || schemaPropertyNames . description || '' ,
267
+ documentation : enumDescription || this . fromMarkup ( schemaPropertyNames . markdownDescription ) || schemaPropertyNames . description || ''
265
268
} ;
269
+ if ( schemaPropertyNames . completionDetail !== undefined ) {
270
+ proposal . detail = schemaPropertyNames . completionDetail ;
271
+ }
266
272
if ( schemaPropertyNames . suggestSortText !== undefined ) {
267
273
proposal . sortText = schemaPropertyNames . suggestSortText ;
268
274
}
0 commit comments