Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Java Script Intellisense
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Juxta
Senior Member

27 Posts

Posted - Nov 26 2008 :  11:07:37 PM  Show Profile  Reply with Quote
Visual Studio 2008 does have intellisense for javascript but it is not very intelligent.
We are beginning to work extensively with WCF back end using javascript/browser front. Using widget libraries like Dojo to create our applications.
It would be if VA could parse the Dojo libraries giving full intellisense capabilities to VS.
Please Please Please.

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 26 2008 :  11:36:21 PM  Show Profile  Reply with Quote
Please try out our 10.5 beta, build 1709:
http://www.wholetomato.com/downloads/getBuild.asp?1709

Some details for 10.5 are available here:
http://www.wholetomato.com/support/history.asp

Please post any feedback on the new javascript support in the beta forum:
http://www.wholetomato.com/forum/forum.asp?FORUM_ID=11
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Nov 27 2008 :  12:13:26 AM  Show Profile  Reply with Quote
Wow! thanks for that amazing reply.
And that is 200% better.
But there are still a few layers of abstraction needed before we can detect Dojo members.
For instance: anything with dojo.declare(
is not recognised as the definisions a generated at runtime i guess.
Still, if the javaScript engine can do it. So can VA.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 28 2008 :  08:21:58 AM  Show Profile  Reply with Quote
I don't know much about JavaScript, and nothing about Dojo.

What is "dojo.declare(" doing?

If the definitions are generated at run time then VA is going to have problems. VA parses the code, and then works from that. It cannot parse "code" that is generated at run time, since this does not exist while you are editing, which is when VA is parsing.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 01 2008 :  4:42:19 PM  Show Profile  Reply with Quote
Juxta:
It would be great if you could put together minimal sample code demonstrating where VA could use improvement re: dojo.

If you are able to, please create a new topic in the beta forum:
http://www.wholetomato.com/forum/forum.asp?FORUM_ID=11

thanks
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Dec 01 2008 :  7:02:05 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

I don't know much about JavaScript, and nothing about Dojo.

What is "dojo.declare(" doing?

If the definitions are generated at run time then VA is going to have problems. VA parses the code, and then works from that. It cannot parse "code" that is generated at run time, since this does not exist while you are editing, which is when VA is parsing.


Aptana Studio seems to do a much better job. So it must be posible.

Im no JavaScript expert, infact, im a nube, but i am determined to use visual studio as MS and Visual Assist are improving very rapidly with Javascript support. (I prefer Visual studio to Eclipse)

The dojo javascript library is just an example of the type of large framework out there .I guess i was just hope the intellisence would work better with it. Its frustrating haveing to search through hundreds of .js files in order to locate a definition for a prototype or function.
I was hopeing that a Visual Assist developer in this area could create a project using these library and see for them selves, maybe notice some areas where the javascript parsing could be improved.
Maybe even infer some intellisense from surrounding standard documentations.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 01 2008 :  8:17:30 PM  Show Profile  Reply with Quote
We're looking into it. case=21251
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Dec 09 2008 :  5:58:37 PM  Show Profile  Reply with Quote
quote:
Originally posted by sean

We're looking into it. case=21251



Here is an idea.
All of the object hirachy are available at runtime in the debug viewer.
e.g. dojo.parser.parse() for instance, you can see the object with all its methods and variables.
How about obtaining this info at runtime and inserting it into the intellesense list in the context of the page and site you are working on and remember it in the intellsence when the debugger is stopped.
This would be well ahead of MS and give you guys an excellent value addition. Would turn VS with VAX into the best javascript debug environment outthere.
Is this posible?
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 09 2008 :  8:18:25 PM  Show Profile  Reply with Quote
We're looking into ways to handle js like Dojo. We won't have it addressed in the initial 10.5 release, but are continuing to work on it for a follow-up build.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Mar 31 2009 :  8:22:17 PM  Show Profile  Reply with Quote
Build 1721 has improvements to the javascript parser that will help with dojo. We are continuing work in this area.
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Mar 31 2009 :  9:16:35 PM  Show Profile  Reply with Quote
Really?
The change history only refers to javascript comment spell check and this case number is not mentioned. 21251
Are you sure the improvements you mention are in this build?
Outline and List Methods still do not work with inline class declarations. i.e. declare( { myfunc : function(test){...} } )

Edited by - Juxta on Mar 31 2009 9:19:07 PM
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Mar 31 2009 :  9:41:10 PM  Show Profile  Reply with Quote
case 21251 isn't closed yet because we are still working on the outline for dojo-like usage. Because it isn't closed, it doesn't show up in the change list. However, you should see improved members listboxes in javascript.
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Mar 31 2009 :  9:46:12 PM  Show Profile  Reply with Quote
it did seem to get the intellisence working better. Just not the listMethods.
i could see store._flatten() witch i could not see before.

Cool. Looking forward to more features as they come. Cheers.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000