Community
Participate
Working Groups
Patch for this fix needed some merging so it could be applied to HEAD. +++ This bug was initially created as a clone of Bug #306958 +++ Build Identifier: Eclipse 3.5.1 - JavaScript Developer Tools 1.1.2.v200908101420-77-FGCCcNBC-BhLcE_Pm - Build id: 20090917225226 Code completion does not populate parameters for constructor. Animal.prototype=new Object(); function Animal(name){}; // when code completion is invoked, user has no idea the Animal constructor takes any param Animal.prototype.property=""; Animal.prototype.eat=function(food){}; Reproducible: Always Steps to Reproduce: 1. Define the above in your JavaScript. 2. Enter "var deer = new Ani" then Ctrl+Space. "Ani" is expanded to "Animal", but there is no bracket and param displayed. 3. Now complete the declaration so that it looks like: var deer = new Animal('Sam'); 4. Now type "deer.e" then Ctrl+Space, see that it's expanded to "deer.eat(food)". Can code completion for constructors works like a regular function?
Created attachment 199264 [details] Fix patch This patch is the same as the patch for Bug 306958 except merged to apply cleanly with HEAD. Also I have included the fixes in bug 306958.
Created attachment 199265 [details] JUnit Test Zip This test project zip needs to go into "org.eclipse.wst.jsdt.ui.tests/testresources/ContentAssist.zip" for the JUnits to work.
*** Bug 350976 has been marked as a duplicate of this bug. ***
Please update this patch based on the corrections we've made in maintenance.
Created attachment 199662 [details] Fix Patch - Update 1 Updates the patch to merge with current head as well as including the fixes for: Bug 351997 Bug 351964 Bug 351962
Created attachment 199903 [details] Fix Patch - Update 2 Updated patch to contain fix for Bug 352374
Checked into HEAD.