diff --git a/src/Program.spec.ts b/src/Program.spec.ts index 3bfd6d694..18d3cd721 100644 --- a/src/Program.spec.ts +++ b/src/Program.spec.ts @@ -1276,6 +1276,40 @@ describe('Program', () => { ).to.eql(['sayHello', 'sayHello2', 'sayHello3', 'sayHello4']); }); + it('gets completions for callfunc invocation with multiple nodes and validates single code completion results', () => { + program.setFile('source/main.bs', ` + function main() + ParentNode@.sayHello(arg1) + end function + `); + program.setFile('components/ParentNode.bs', ` + function sayHello(text, text2) + end function + `); + program.setFile('components/ParentNode.xml', + trim` + +