I'm using eclipse JSDT and I have a javascript object declaration that looks like this:
var rs1 = {};
rs1.person1 = {};
rs1.person1.phone = "hg";
rs1.person1.name = "lk";
Content assist will pull up rs1 properties (rs1.person1.name) in the editor if I add it to a file in the project javascript include path user library, but the following notation
var rs1 = {person1:{ phone:"hg", name:"lk"}};
then content assist will only go as far as rs1.person and stop. If I use this same JSON notation directly in my javascript, then content assist works as expected. It just doesn't work when I add it the project include path.
I've been struggling with this for a few days but I can't find a way to make it work.
Any ideas?