Bug 269004 - No content assist on object literal with "string" values
Summary: No content assist on object literal with "string" values
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.5   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: contributed
: 259025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-17 11:12 EDT by Chris Jaun CLA
Modified: 2010-03-03 11:17 EST (History)
0 users

See Also:
thatnitind: review+


Attachments
Update the InferEngine to handle Strings in Object Literals (1.03 KB, patch)
2009-03-31 14:11 EDT, Chris Jaun CLA
thatnitind: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jaun CLA 2009-03-17 11:12:41 EDT
Build ID: WTP 3.1 m6

Steps To Reproduce:
Add the following to the JS editor:

var point = {x:1, y:2};
var myVar = 1;
var myObject = {"upper": {x:point.x, y:point.y},
		"lower": {x:(point.x + side), y:(point.y+side) }
};

Type "myObject." and try to use content assist.

No suggestions are given.

More information:
Comment 1 Chris Jaun CLA 2009-03-31 14:11:35 EDT
Created attachment 130438 [details]
Update the InferEngine to handle Strings in Object Literals
Comment 2 Chris Jaun CLA 2009-03-31 14:11:56 EDT
This should be fixed in 3.0.5 and 3.1.
Comment 3 Chris Jaun CLA 2009-04-01 13:54:57 EDT
*** Bug 259025 has been marked as a duplicate of this bug. ***
Comment 4 Nitin Dahyabhai CLA 2009-04-02 02:44:21 EDT
Applied to 3.1m7
Comment 5 Nitin Dahyabhai CLA 2009-04-13 17:17:49 EDT
Applied to 3.0.5, thanks, Chris.