{ const importRange = helper . getPositionRange ( 'import' ) ; const marker1Range = helper . getPositionRange ( 'marker1' ) ; const marker2Range = helper . getPositionRange ( 'marker2' ) ; const marker4Range = helper . getPositionRange ( 'marker4' ) ; await helper . verifyCompletion ( 'exact' , 'markdown' , { marker1 : { completions : [ { label : 'MY_CONSTANT_VAR' , kind : Consts . CompletionItemKind . Constant , documentation : '```\nfrom lib import MY_CONSTANT_VAR\n```' , detail : 'Auto-import' , textEdit : { range : marker1Range , newText : 'MY_CONSTANT_VAR' } , additionalTextEdits : [ { range : importRange , newText : 'from lib import MY_CONSTANT_VAR\n\n\n' } ] , } , ] , } , marker2 : { completions : [ { label : 'MyAliasList' , kind : Consts . CompletionItemKind . Variable , documentation : '```\nfrom lib import MyAliasList\n```' , detail : 'Auto-import' , textEdit : { range : marker2Range , newText : 'MyAliasList' } , additionalTextEdits : [ { range : importRange , newText : 'from lib import MyAliasList\n\n\n' } ] , } , ] , } , marker3 : { completions : [ ] } , marker4 : { completions : [ { label : '_MY_PROTECTED2' , kind : Consts . CompletionItemKind . Constant , documentation : '```\nfrom lib import _MY_PROTECTED2\n```' , detail : 'Auto-import' , textEdit : { range : marker4Range , newText : '_MY_PROTECTED2' } , additionalTextEdits : [ { range : importRange , newText : 'from lib import _MY_PROTECTED2\n\n\n' } ] , } , ] , } , marker5 : { completions : [ ] } , } ) ; }