@@ -603,10 +603,9 @@ export class AppComponent {
603
603
{ 'start' : { 'line' : 5 , 'character' : 45 } , 'end' : { 'line' : 5 , 'character' : 45 } }
604
604
} ,
605
605
{
606
- 'newText' :
607
- '{\n declarations: [\n AppComponent,\n FooComponent,\n ],\n bootstrap: [AppComponent],\n imports: [\n CommonModule,\n PostModule,\n BarComponent\n ]\n}' ,
606
+ 'newText' : 'imports: [\n CommonModule,\n PostModule,\n BarComponent\n]' ,
608
607
'range' :
609
- { 'start' : { 'line' : 7 , 'character' : 10 } , 'end' : { 'line' : 17 , 'character' : 1 } }
608
+ { 'start' : { 'line' : 8 , 'character' : 2 } , 'end' : { 'line' : 11 , 'character' : 3 } }
610
609
}
611
610
]
612
611
}
@@ -626,9 +625,8 @@ export class AppComponent {
626
625
const libPostResponse = response . find ( res => res . label === 'baz-component' ) ! ;
627
626
const detail = await client . sendRequest ( lsp . CompletionResolveRequest . type , libPostResponse ) ;
628
627
expect ( detail . additionalTextEdits ) . toEqual ( [ {
629
- 'newText' :
630
- '{\n selector: \'bar-component\',\n template: `<`,\n standalone: true,\n imports: [BazComponent]\n}' ,
631
- 'range' : { 'start' : { 'line' : 11 , 'character' : 11 } , 'end' : { 'line' : 15 , 'character' : 1 } }
628
+ 'newText' : ',\n imports: [BazComponent]' ,
629
+ 'range' : { 'start' : { 'line' : 14 , 'character' : 20 } , 'end' : { 'line' : 14 , 'character' : 20 } }
632
630
} ] ) ;
633
631
} ) ;
634
632
} ) ;
0 commit comments