Javascript Editor Type Validation [message #665843] |
Sat, 16 April 2011 19:46  |
Eclipse User |
|
|
|
The latest version of the javascript editor appears to be able to do some rudimentary 'includes' of libraries and other javascript files for the purposes of validation.
Unfortunately it doesn't seem to handle the 'new' keyword very well.
If I have the following in the included file:
function foo(){};
the following validates (and I can even ctrl-click to the definition in the other file):
var v = foo();
However if I do this:
var v = new foo();
The editor gives a 'foo cannot be resolved to type' error (I have 'check for unresolved types/fields' enabled for javascript validation).
(the above is legit javascript and it validates fine if I have the definition of 'foo()' in the same file)
My question is: Is this just too much to expect from the editor or is this a bug? Or maybe there is some setting I am missing?
Thanks in advance for any answers.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04736 seconds