Author |
Topic |
|
Patrick Bricout
New Member
United Kingdom
5 Posts |
Posted - Jul 05 2007 : 09:19:03 AM
|
Hi,
Would it be possible to add the support for .wsf files containing VBscript. Visual IDE already support it, I'd really love to have VA support.
It should be a major issue as you already support .vbs files
Best regards, Patrick
Ex: <job> <script language="VBScript" src="MyLib.vbs"/> <script language="VBScript"> ' VBScript code goes here. </script> </job>
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jul 05 2007 : 09:51:52 AM
|
Based on this FAQ: http://docs.wholetomato.com?W328
you may find that adding ".wsf" to the key:
HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet8\\ExtHtml = ...
for the correct IDE helps. Note that you will need to rebuild VA's symbol databases as described in the FAQ. I have not tried this here, I don't recognise the file extension ".wsf" personally.
If this does do something don't expect miracles. From this page:
http://www.wholetomato.com/support/matrix.asp
we do support VB, but VBScript is a bit different. |
zen is the art of being at one with the two'ness |
|
|
Patrick Bricout
New Member
United Kingdom
5 Posts |
Posted - Jul 06 2007 : 05:21:30 AM
|
Thanks for your answer
I'm using Visual .Net 2003 (7.1).
I'm ok with the features. I'm interested by features like "List Methods in File" which approximately works for VBS files. I wonder why sometimes for no apparent reasons it doesn't recognize some functions/subs.
I tried modifying the keys : HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet71\\ExtVB = ... which was already containing .vbs and/or ExtHtml
I also tried to add the the extension to Tools|Options|Projects|VC++ Build|C/C++ File Extensions and HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Languages\\File Extensions\\.xxx, but this shouldn't be necessary as Visual already recognise this type of file and highlight it.
without success the VA toolbar with Context/Definition/Goto Implementation only appears for the VBS files.
In addition, do you think that the support for VBS will be added in future released as an improvement (which is a bit different from VB but quite close).
Regards, |
|
|
Patrick Bricout
New Member
United Kingdom
5 Posts |
Posted - Jul 06 2007 : 10:51:06 AM
|
Just found that problem : create a blank .VBS a copy/paste the following code function A() set a = new foo end function
function B() end function
function C() end function
If I type alt-M, functions A() and C() are listed but B() but if you remove "set" it works, i think the problem is because set optionnal in VB not in VBS
if I find something else I let you know.
Thanks |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jul 07 2007 : 3:57:28 PM
|
I am seeing the same problem with "set" and the alt-m list, thank you for the clear description:
case=7545 |
zen is the art of being at one with the two'ness |
|
|
Patrick Bricout
New Member
United Kingdom
5 Posts |
Posted - Jul 10 2007 : 09:52:03 AM
|
cool, one bug less soon.
Any idea why I can't register .wsf to act like .vbs/.vb ?
Thanks |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jul 10 2007 : 2:40:21 PM
|
Based on this FAQ entry:
http://docs.wholetomato.com?W328
I simply edited the registry key, to become:
HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet8\\ExtVB = ".vb;.vbs;.dsm;.bas;.cls;.frm;.dob;.wsf;"
so I added .wsf; - note the trailing semi-colon. I did this with all IDE instances closed. When I re-loaded VS2005 I have the VA context and definition fields showing in my test WSF file, just like they are showing in my VBS file.
I did not need to clone any registry keys, since an entry already existed for ".wsf" in the correct part of the registry.
This is using VS2005 and VA 1559 |
zen is the art of being at one with the two'ness |
|
|
Patrick Bricout
New Member
United Kingdom
5 Posts |
Posted - Jul 11 2007 : 06:52:11 AM
|
I launched Visual 2005, and then back Visual 2003 and now it's fine! Weird?!? Anyway thanks. |
|
|
|
Topic |
|