Author |
Topic |
|
Juxta
Senior Member
27 Posts |
Posted - Nov 26 2008 : 11:07:37 PM
|
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 |
|
Juxta
Senior Member
27 Posts |
Posted - Nov 27 2008 : 12:13:26 AM
|
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.
|
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Nov 28 2008 : 08:21:58 AM
|
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 |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Dec 01 2008 : 4:42:19 PM
|
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
|
|
|
Juxta
Senior Member
27 Posts |
Posted - Dec 01 2008 : 7:02:05 PM
|
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. |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Dec 01 2008 : 8:17:30 PM
|
We're looking into it. case=21251
|
|
|
Juxta
Senior Member
27 Posts |
Posted - Dec 09 2008 : 5:58:37 PM
|
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? |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Dec 09 2008 : 8:18:25 PM
|
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. |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Mar 31 2009 : 8:22:17 PM
|
Build 1721 has improvements to the javascript parser that will help with dojo. We are continuing work in this area. |
|
|
Juxta
Senior Member
27 Posts |
Posted - Mar 31 2009 : 9:16:35 PM
|
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 |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Mar 31 2009 : 9:41:10 PM
|
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. |
|
|
Juxta
Senior Member
27 Posts |
Posted - Mar 31 2009 : 9:46:12 PM
|
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. |
|
|
|
Topic |
|