|
Re: Code completion for global defined in other files [message #675638 is a reply to message #674344] |
Wed, 01 June 2011 04:30 |
|
On 5/26/2011 11:07 AM, forums-noreply@eclipse.org wrote:
> Hello,
> I'm attempting to use code completion on a property of a global
> namespace. I've defined & JSDoc'ed the global in another js file (which
> is included in the project, and I get that variable in code completion).
> When I try to use this property, I get no options for code completion.
> Is this possible to do?
>
> File 1
> var foo = {};
>
> File 2
> foo.prop = function(){return "Hello World";};
>
> When I try to use code completion in File 2 to prompt for foo.prop, I
> see no proposals.
At the moment, no, not unless both files are open in editors. Proper
(and performant) support for Globals is something we want to visit in
the next maintenance release.
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.02642 seconds