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 6 and 8 and type the answer here:
  • Post
  • @Michael: ScriptManagerProxy is supported. Could I get more details about your file structure?  I assume you have the correct ScriptManager in your master page and you're not in a User Control.  Thanks!

  • I'm actually using ToolkitScriptManager in the master page but have tried the standard ScriptManager as well. The ScriptManagerProxy is not in a User Control, just a page that inherits from the master page. I've also tried putting the script reference in the master page to no avail.

    This is the version of Visual Studio I'm running:

    Microsoft Visual Studio 2008

    Version 9.0.30729.1 SP

    Microsoft Visual Web Developer 2008   91911-152-0000077-60635

    KB945282, KB946040, KB946308, KB946344, KB946581, KB947540, KB947789, KB951708, KB958502, KB956485

  • 【原文地址】 jQuery Intellisense in VS 2008 | VS 2008中的jQuery Intellisense 【原文发表日期】 Friday, November 21, 2008

  • @WebDevTools: I'm not getting intellisense when working with web services either in javascript (System.Web.Script.Services.ScriptService), so I'm sure it's not an issue with this patch. I've tried it on other machines with the same result.

    I didn't event realise you were meant to, until you mentioned you look for the debug version of a script file. So running in debug mode I found the different javascript file that gets generated for the web service complete with comments.

  • Subscribe to All! Subscribe to WMV. Subscribe to M4V (iPod). Subscribe to MP3. Download WMV. Download

  • Subscribe to All! Subscribe to WMV. Subscribe to M4V (iPod). Subscribe to MP3. Download WMV. Download

  • Subscribe to All! Subscribe to WMV. Subscribe to M4V (iPod). Subscribe to MP3. Download WMV. Download

  • jQuery es una libreria de JavaScript que simplica el manejo de HTML, eventos, animación, AJAX y javascript

  • Where is the 64 bit version of this hotfix? Installed it on Vista 64 bit and it doesn't work. I can't believe you would release this for x86 only.

  • @silderhouserules: The patch is compatible with Vista 64 and we have tested it on a 64-bit OS.  Could you give me more details on the file you're editing and where you're invoking the IntelliSense?  Thanks!

  • Mês passado eu postei sobre como a Microsoft está estendendo o suporte à jQuery . Nas últimas semanas

  • I worked on this all throughout the day yesterday, installed and reinstalled the hotfix, and it never worked. I try it today after reading your response, and it just works.

    Is this one of those things that is threaded in VS and put in some queue that waits for the machine to be "idle" or something before it's initialized (like the View Code right click option that doesn't show up immediately)?

    So, it works, but still very aggravating.

  • @silderhouserules: IntelliSense updates on idle time.  This behavior is general to JScript IntelliSense, and not specific to the Hotfix.  We do that because the process can take up to a few seconds and we did not want to burden the startup performance.  Moving forward in VS2010, the updates will be near imperceptible and executed instantly (not waiting until idle).  You can always manually force an update via Ctrl+Shift+J... please see the FAQ (a later blog post by me).  Thanks!

  • jQuery Intellisense in VS 2008 转自:http://weblogs.asp.net/scottgu/ Last month I blogged about how Microsoft is extending support for jQuery. Over the last few weeks we've been working with the jQuery team to add great jQuery intellisense support within

  • It's nothing for case of Web-resources or Embedded Resource ;)

    I'm cry.

Page 3 of 4 (60 items) 1234