@@ -2541,6 +2541,8 @@ describe('Auto Completion Tests', () => {
25412541 } ,
25422542 required : [ 'type' , 'options' ] ,
25432543 type : 'object' ,
2544+ description : 'Description1' ,
2545+ title : 'Object1' ,
25442546 } ;
25452547 const obj2 = {
25462548 properties : {
@@ -2581,12 +2583,12 @@ describe('Auto Completion Tests', () => {
25812583 createExpectedCompletion ( 'type' , 'type: typeObj1' , 0 , 0 , 0 , 0 , 10 , 2 , { documentation : '' } )
25822584 ) ;
25832585 expect ( result . items [ 1 ] ) . to . deep . equal (
2584- createExpectedCompletion ( 'obj1 ' , 'type: typeObj1\noptions:\n label: ' , 0 , 0 , 0 , 0 , 7 , 2 , {
2586+ createExpectedCompletion ( 'Object1 ' , 'type: typeObj1\noptions:\n label: ' , 0 , 0 , 0 , 0 , 7 , 2 , {
25852587 documentation : {
25862588 kind : 'markdown' ,
2587- value : '```yaml\ntype: typeObj1\noptions:\n label: \n```' ,
2589+ value : 'Description1\n\n----\n\n ```yaml\ntype: typeObj1\noptions:\n label: \n```' ,
25882590 } ,
2589- sortText : '_obj1 ' ,
2591+ sortText : '_Object1 ' ,
25902592 } )
25912593 ) ;
25922594 expect ( result . items [ 2 ] ) . to . deep . equal (
@@ -2627,12 +2629,12 @@ describe('Auto Completion Tests', () => {
26272629 createExpectedCompletion ( 'type' , 'type: typeObj1' , 0 , 2 , 0 , 2 , 10 , 2 , { documentation : '' } )
26282630 ) ;
26292631 expect ( result . items [ 1 ] ) . to . deep . equal (
2630- createExpectedCompletion ( 'obj1 ' , 'type: typeObj1\n options:\n label: ' , 0 , 2 , 0 , 2 , 7 , 2 , {
2632+ createExpectedCompletion ( 'Object1 ' , 'type: typeObj1\n options:\n label: ' , 0 , 2 , 0 , 2 , 7 , 2 , {
26312633 documentation : {
26322634 kind : 'markdown' ,
2633- value : '```yaml\n type: typeObj1\n options:\n label: \n```' ,
2635+ value : 'Description1\n\n----\n\n ```yaml\n type: typeObj1\n options:\n label: \n```' ,
26342636 } ,
2635- sortText : '_obj1 ' ,
2637+ sortText : '_Object1 ' ,
26362638 } )
26372639 ) ;
26382640 expect ( result . items [ 2 ] ) . to . deep . equal (
@@ -2666,12 +2668,12 @@ describe('Auto Completion Tests', () => {
26662668
26672669 expect ( result . items . length ) . equal ( 3 ) ;
26682670 expect ( result . items [ 1 ] ) . to . deep . equal (
2669- createExpectedCompletion ( 'obj1 ' , 'type: typeObj1\noptions:\n label: ' , 0 , 0 , 0 , 0 , 7 , 2 , {
2671+ createExpectedCompletion ( 'Object1 ' , 'type: typeObj1\noptions:\n label: ' , 0 , 0 , 0 , 0 , 7 , 2 , {
26702672 documentation : {
26712673 kind : 'markdown' ,
2672- value : '```yaml\ntype: typeObj1\noptions:\n label: \n```' ,
2674+ value : 'Description1\n\n----\n\n ```yaml\ntype: typeObj1\noptions:\n label: \n```' ,
26732675 } ,
2674- sortText : '_obj1 ' ,
2676+ sortText : '_Object1 ' ,
26752677 } )
26762678 ) ;
26772679 } ) ;
@@ -2686,12 +2688,12 @@ describe('Auto Completion Tests', () => {
26862688
26872689 expect ( result . items . length ) . equal ( 2 ) ;
26882690 expect ( result . items [ 1 ] ) . to . deep . equal (
2689- createExpectedCompletion ( 'obj1 ' , 'options:\n label: ' , 1 , 0 , 1 , 0 , 7 , 2 , {
2691+ createExpectedCompletion ( 'Object1 ' , 'options:\n label: ' , 1 , 0 , 1 , 0 , 7 , 2 , {
26902692 documentation : {
26912693 kind : 'markdown' ,
2692- value : '```yaml\noptions:\n label: \n```' ,
2694+ value : 'Description1\n\n----\n\n ```yaml\noptions:\n label: \n```' ,
26932695 } ,
2694- sortText : '_obj1 ' ,
2696+ sortText : '_Object1 ' ,
26952697 } )
26962698 ) ;
26972699 } ) ;
0 commit comments