@@ -527,6 +527,25 @@ suite('ExtHostTypes', function () {
527527 string . appendVariable ( 'BAR' , b => { } ) ;
528528 assert . equal ( string . value , '${BAR}' ) ;
529529
530+ string = new types . SnippetString ( ) ;
531+ string . appendChoice ( [ 'b' , 'a' , 'r' ] ) ;
532+ assert . equal ( string . value , '${1|b,a,r|}' ) ;
533+
534+ string = new types . SnippetString ( ) ;
535+ string . appendChoice ( [ 'b' , 'a' , 'r' ] , 0 ) ;
536+ assert . equal ( string . value , '${0|b,a,r|}' ) ;
537+
538+ string = new types . SnippetString ( ) ;
539+ string . appendText ( 'foo' ) . appendChoice ( [ 'far' , 'boo' ] ) . appendText ( 'bar' ) ;
540+ assert . equal ( string . value , 'foo${1|far,boo|}bar' ) ;
541+
542+ string = new types . SnippetString ( ) ;
543+ string . appendText ( 'foo' ) . appendChoice ( [ 'far' , '$boo' ] ) . appendText ( 'bar' ) ;
544+ assert . equal ( string . value , 'foo${1|far,\\$boo|}bar' ) ;
545+
546+ string = new types . SnippetString ( ) ;
547+ string . appendText ( 'foo' ) . appendPlaceholder ( 'farboo' ) . appendChoice ( [ 'far' , 'boo' ] ) . appendText ( 'bar' ) ;
548+ assert . equal ( string . value , 'foo${1:farboo}${2|far,boo|}bar' ) ;
530549 } ) ;
531550
532551 test ( 'instanceof doesn\'t work for FileSystemError #49386' , function ( ) {
0 commit comments