| Summary: | [content assist] Use index to find global functions | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Ian Tewksbury <itewksbu> | ||||||||||||||
| Component: | General | Assignee: | Project Inbox <jsdt.javascript-inbox> | ||||||||||||||
| Status: | RESOLVED WONTFIX | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||||||||||
| Severity: | enhancement | ||||||||||||||||
| Priority: | P3 | CC: | cmjaun | ||||||||||||||
| Version: | 3.2.5 | Flags: | cmjaun:
review-
thatnitind: review- |
||||||||||||||
| Target Milestone: | --- | ||||||||||||||||
| Hardware: | All | ||||||||||||||||
| OS: | All | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Ian Tewksbury
Created attachment 199703 [details]
Fix Patch
This patch primarily updates the MethodPattern to store all the information about a function that is needed to create a content assist proposal. The rest of the changes are to then either help get that information to the MehtodPattern, or leverage the new information now stored in the index.
Have also added a bunch of new JUnits to test all of this.
Created attachment 199704 [details]
Updated Testing Zip
This is an updated testing zip for org.eclipse.wst.jsdt.ui.tests/testresources for the updated JUnits.
Created attachment 199712 [details]
Fix Patch - Update 1
same as last patch except I have added more documentation.
I have a bit more documentation to do.
Created attachment 199775 [details]
Fix Patch - Update 2
Finished documenting. Also had to add code to BasicSearchEngine#searchAllFunctions to deal with working copies.
Created attachment 199862 [details]
Fix Patch - Update 3
Same as last patch except I removed a piece of code I commented out.
I think we are good to go on this. Created bug 352499 to put this in head as well. merged patch there. Created attachment 199943 [details]
Fix Patch - Update 4
Same as last patch except small fix in Methodpattern#matchesDecodedKey. One of the lines was comparing the return qualificaiton to the return simple name rather then to the return qualification of the pattern to try and match.
Backed out the patch that was checked in on 07/20 because it breaks search and the SelectionEngine for functions. Needs a lot more study to avoid breaking other functions. |