VS2008 SP1 Hotfix to Support "-vsdoc.js" IntelliSense Doc Files

VS2008 SP1 Hotfix to Support "-vsdoc.js" IntelliSense Doc Files

Rate This
  • Comments 60

Last week I mentioned we would be releasing a Hotfix to accompany our new jQuery VSDoc file.  This Hotfix is now available at the MSDN Code Gallery.  Here's a direct download link for this small (2MB) patch:

http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736

I want to emphasize that this patch is intended for all JavaScript files, not just those related to jQuery.  Generally, we will opportunistically look for documentation files related to the script file.  For example, given "mylibrary.js", we will search in the same directory for:

  • mylibrary-vsdoc.js, then if we don't find it we will search for...
  • mylibrary.debug.js, then if we don't find it we will search for...
  • mylibrary.js

The idea here is to keep the documentation file next to your runtime file, and we'll automatically pick the right one.  If you already have a whole bunch of annotated "dot debug" files, there's no need to rename all your files since we search for those also.  This logic applies to all places where script file reference are mentioned.  To recap, those place are:

  • Plain HTML script tags.
  • ASP.NET Script Manager tags (and Script Manager Proxy too).
  • XML Doc Comment Reference tags.

By the way, Hotfixes are normally targeted at the latest public Visual Studio release, which today is VS2008 SP1.  If you're using VS2008 you will need to upgrade to SP1 before taking advantage of this patch.  We hope this will help simplify your code a bit!

Jeff King
Program Manager
Visual Studio Web Tools

Leave a Comment
  • Please add 3 and 3 and type the answer here:
  • Post
  • PingBack from http://blogs.msdn.com/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx

  • You've been kicked (a good thing) - Trackback from DotNetKicks.com

  • Jeff King just announced the release of a patch for Visual Studio 2008 that enables the IDE to find the

  • this is only semi-fantastic!

    it'd be better there was a an IDE option or something that allowed me to point to my -vsdoc files.

    for example, i'm in the middle of a huge asp.net/jquery project.  putting the reference files on all files would be insane.

  • What the frak is up with Microsoft lately?  I've not seem them this accommodating to developers in my 15 years of using MS tools.  Nice work indeed!

  • I'm getting the following error in VS2008 with the instruction after the project is loaded:

    Warning 25 Error updating JScript IntelliSense: <path>\js\jquery-1.2.6-vsdoc.js: 'childNodes' is null or not an object @ 1571:4 <path>\myPage.aspx 1 1 myPage

    any ideas?

  • How to Use Visual Studio jQuery IntelliSense Supported Through Hotfix

  • Thanks a lot this will help.  Extjs uses -debug.js for it's debug file names.  Maybe for the next release/hotfix you could add support for -debug.js?

    Thanks a lot!

  • Let me echo what CurlyFro said.

    And option in the IDE or some settings file would be much better than VS trying to be "smart" and guess. I would love to have some kind of location where I could basically tell it: "look, these are the files that will be available at runtime, at design time pretend that these are available". There are many ways to include JS files, it could be via script tag, script reference, from the master page, from the page that includes the user control, via code, via some property that's set with a skin, etc. You can't possibly accommodate all these scenarios, so just let us tell the IDE. I'm sure it would be a much less work for you guys and also more accurate.

    While you're at it, could this "resource manager" feature include CSS files as well. There's a similar problem with the IDE trying to guess what CSS files will be included. If VS would let us tell it all the guess work would be eliminated.

    What do you say?

  • 2 Niner: I have faced the same problem (error updating JScript IntelliSense). In my case it occurs because of the conflict with jquery-ui script.

    And we have three solutions:

    1. Quick workaround - make empty -vsdoc.js file for jquery-ui

    2. Make proper "true" -vsdoc.js for jquery-ui

    3. Wait for VS and/or jquery teams for do it for us ;-)

    I think this (1, 2) solutions must work not only for our case but for all other .js files which have problems with IntelliSense... thanks for new path from VS team.

  • Semanas atrás, Microsoft adelantaba en el anuncio de la inclusión de jQuery en la plataforma de desarrollo

  • After installing this hotfix my vs.net 2008 mem usage jumps up to 428,000k + with just one .cs file opened for edit... and my system is very slow now.

  • Visual Studio 2008 Hotfix for jQuery IntelliSense

  • A few week I mentioned how to get intellisense for jQuery. Now the visual studio web tools team released

  • I have just installed this Hotfix and my VS2008 crashes everytime I do a cut and paste within a .cs file?  How can I un-install this hotfix?  It is not in the Add/Remove programs.

    Help!....Mike

Page 1 of 4 (60 items) 1234