{ const marker1Range = helper . expandPositionRange ( helper . getPositionRange ( 'marker1' ) , 1 , 1 ) ; const marker2Range = helper . expandPositionRange ( helper . getPositionRange ( 'marker2' ) , 2 , 1 ) ; const marker3Range = helper . expandPositionRange ( helper . getPositionRange ( 'marker3' ) , 1 , 0 ) ; const marker4Range = helper . expandPositionRange ( helper . getPositionRange ( 'marker4' ) , 1 , 1 ) ; const marker5Range = helper . expandPositionRange ( helper . getPositionRange ( 'marker5' ) , 1 , 1 ) ; await helper . verifyCompletion ( 'exact' , 'markdown' , { marker1 : { completions : [ { label : "'name'" , kind : Consts . CompletionItemKind . Constant , textEdit : { range : marker1Range , newText : "'name'" } , } , { label : "'age'" , kind : Consts . CompletionItemKind . Constant , textEdit : { range : marker1Range , newText : "'age'" } , } , ] , } , marker2 : { completions : [ { label : "'name'" , kind : Consts . CompletionItemKind . Constant , textEdit : { range : marker2Range , newText : "'name'" } , } , { label : "'age'" , kind : Consts . CompletionItemKind . Constant , textEdit : { range : marker2Range , newText : "'age'" } , } , ] , } , marker6 : { completions : [ ] , } , } ) ; await helper . verifyCompletion ( 'included' , 'markdown' , { marker3 : { completions : [ { label : "'age'" , kind : Consts . CompletionItemKind . Constant , textEdit : { range : marker3Range , newText : "'age'" } , } , ] , } , marker4 : { completions : [ { label : "'age'" , kind : Consts . CompletionItemKind . Constant , textEdit : { range : marker4Range , newText : "'age'" } , } , ] , } , marker5 : { completions : [ { label : "'age'" , kind : Consts . CompletionItemKind . Constant , textEdit : { range : marker5Range , newText : "'age'" } , } , ] , } , } ) ; await helper . verifyCompletion ( 'excluded' , 'markdown' , { marker3 : { completions : [ { label : "'name'" , kind : Consts . CompletionItemKind . Constant , } , ] , } , marker4 : { completions : [ { label : "'name'" , kind : Consts . CompletionItemKind . Constant , } , ] , } , marker5 : { completions : [ { label : "'name'" , kind : Consts . CompletionItemKind . Constant , } , ] , } , } ) ; }