Welcome to MSDN Blogs Sign in | Join | Help

Visual Web Developer Team Blog

Your official information source from the Visual Web Developer team.

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
VS2008 SP1 Hotfix to Support "-vsdoc.js" IntelliSense Doc Files

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

Posted: Friday, November 07, 2008 5:45 AM by WebDevTools

Comments

DotNetKicks.com said:

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

# November 8, 2008 12:32 AM

Community Blogs said:

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

# November 8, 2008 1:17 AM

CurlyFro said:

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.

# November 8, 2008 8:32 AM

Chris said:

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!

# November 8, 2008 10:12 AM

Niner said:

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?

# November 8, 2008 11:29 AM

Bill Beckelman said:

How to Use Visual Studio jQuery IntelliSense Supported Through Hotfix

# November 8, 2008 12:14 PM

Jerry said:

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!

# November 8, 2008 12:21 PM

Peter said:

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?

# November 8, 2008 2:41 PM

Igor said:

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.

# November 9, 2008 5:12 AM

Variable not found en Geeks.ms said:

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

# November 9, 2008 5:00 PM

Byron Adams said:

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.

# November 9, 2008 8:54 PM

Think with .Net said:

Visual Studio 2008 Hotfix for jQuery IntelliSense

# November 10, 2008 1:52 AM

Erwin's Blog said:

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

# November 10, 2008 3:41 AM

Mike said:

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

# November 10, 2008 12:48 PM

Mike said:

Resolved for now: removed Hotfix, removed CodeRush Xpress, repaired VS2008, seems to work OK now.  Will have to re-install and see how it goes next time.

-Mike

# November 10, 2008 3:00 PM

WebDevTools said:

My name is Vinay Reddy and i work in the Visual Studio Web Tools team. I thought i will post some general instructions to help diagnose the problem at the high level.

If you notice problems after installing the QFE, please follow the instructions below to make sure you have right bits in the box before you report the error.

Check the file version of the following 2 files. File version should say 9.0.30729.174

• <Install Drive>\Program Files\Microsoft Visual Studio 9.0\Common7\IDE System.VisualStudio.web.dll

• <Install Drive>\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\HtmlEd.dll

If the file version is not  9.0.30729.174, then that means QFE is not installed properly. Try uninstalling and installing the QFE again to see whether that fixes your problem.

To Uninstall the QFE:

• Go to Control Panel -> Add Remove programs.

• Check the box next to ‘Show Updates’.

• Find Microsoft Visual Studio SKU (for example, you will see something like ‘Microsoft Visual Studio Team System 2008 Team Suite – ENU’ for VSTS SKU) that you have installed in the box. Under this entry, you should see an entry for the hotfix with the KB number KB958502.

• Select that entry and click on ‘Remove’ button to remove the hotfix.

After uninstalling, check the file version of the following 2 files. Make sure the file version says 9.0.30729.1

• <Install Drive>\Program Files\Microsoft Visual Studio 9.0\Common7\IDE System.VisualStudio.web.dll

• <Install Drive>\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\HtmlEd.dll

If the file version is 9.0.30729.1, then continue with the steps below otherwise install VS 2008 SP1 RTM first and then follow steps below.

• Try to reproduce the issue again.

• If the issue exists, log a connect bug because it’s not specific to the hotfix.

• If it doesn’t exists, then install the QFE again.

• Try to reproduce the error again. If the error reproduces, please contact us with the following details.

1. Steps to reproduce the problem.

2. Description of the issue

3. What OS you are using?

4. What VS SKU you are using?

You can directly contact me at VinayR@Microsoft.com.

Thanks,

_gvb

# November 10, 2008 9:47 PM

WebDevTools said:

Hi Byron,

I'm not successful in reproducing the error that you are seeing even after multiple tries. Can you please follow my steps above to see whether you have the right bits in your machine? Also, is the issue disappears if you uninstall the QFE?

Thanks,

_gvb

# November 10, 2008 10:08 PM

Alex said:

Hi Reddy,

probably you mean IDE\<b>Microsoft<b>.VisualStudio.web.dll

# November 11, 2008 5:26 AM

Alex Gavrilov [MSFT] said:

Hi Niner,

Have you had a chance to try what Igor said? If that didn't help, would you please paste the exact markup you are using to include jQuery (e.g., <script src=) and any other JS files you are using?

In general, Igor had excellent suggestion for temporarily working around the problem with the plug-ins that VS doesn't currently support because of the JavaScript structure used in them.

Thanks,

Alex

# November 11, 2008 2:52 PM

Alex Gavrilov [MSFT] said:

Hi Alex,

Thanks for the correction, yes, he meant Microsoft.VisualStudio.Web.dll, not System.VisualStudio.Web.dll.

:-)

Thanks,

Alex

# November 11, 2008 2:53 PM

Byron Adams said:

I took a hint from a post above and now suspect it is a combination of the Hotfix, and CodeRush Xpress. I did not notice any problem until after I installed the hotfix, but will try and remove CodeRush and see if that makes a difference.

# November 11, 2008 8:20 PM

Jan Tielens' Bloggings said:

In the first part of this article I'll talk about how you can enable the jQuery JavaScript library in

# November 20, 2008 9:06 AM

ScottGu's Blog said:

Last month I blogged about how Microsoft is extending support for jQuery .&#160; Over the last few weeks

# November 21, 2008 5:07 AM

BusinessRx Reading List said:

Last month I blogged about how Microsoft is extending support for jQuery .&#160; Over the last few weeks

# November 21, 2008 5:41 AM

Kai.Ma said:

【原文地址】jQueryIntellisenseinVS2008【原文发表日期】Friday,November21,20082:07AM

上个月,我在博客里宣布了微软...

# November 23, 2008 3:12 AM

binglingshui said:

[转自MSDN]

在VS2008中启用jQueryIntellisense的步骤

要在VS中启用jQuery的intellisense完成,你要遵循三个步骤:

第一步:安装VS2008...

# November 24, 2008 3:29 AM

小角色 said:

【原文地址】jQuery Intellisense in VS 2008 【原文发表日期】 Friday, November 21, 2008 2:07 AM 上个月,我在博客里宣布了微软将对jQuery提供支持。在过去的几个星期里,我们与jQuery开发团队合作,在Studio 2008 和 Visual Web Developer 2008 Express版本(免费的)中增加了很好的jQuery intellisense支持。现在这个支持可以下载使用了。 在VS 2008中启用jQuery Intellisense的步骤

# November 24, 2008 9:12 PM

小角色 said:

【原文地址】jQuery Intellisense in VS 2008 【原文发表日期】 Friday, November 21, 2008 2:07 AM 上个月,我在博客里宣布了微软将对jQuery提供支持。在过去的几个星期里,我们与jQuery开发团队合作,在Studio 2008 和 Visual Web Developer 2008 Express版本(免费的)中增加了很好的jQuery intellisense支持。现在这个支持可以下载使用了。 在VS 2008中启用jQuery Intellisense的步骤

# November 24, 2008 9:13 PM

Michael said:

I find I only get the intellisense with Web Developer working if I use plain html script tags not script manager proxy. Does anyone know why? Thanks Microsoft for the good work.

# November 26, 2008 3:33 AM

WebDevTools said:

@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!

# November 26, 2008 4:24 AM

Michael said:

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

# November 26, 2008 4:19 PM

Felix Wang | Evangelizing the Next Web said:

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

# November 27, 2008 12:33 AM

Michael said:

@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.

# November 27, 2008 7:33 PM

ASPInsiders said:

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

# December 2, 2008 11:47 PM

Wallace B. McClure said:

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

# December 3, 2008 9:48 AM

More Wally - Wallace B. McClure said:

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

# December 3, 2008 10:14 AM

Hector Minaya said:

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

# December 3, 2008 10:23 AM

sliderhouserules said:

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.

# December 3, 2008 7:23 PM

WebDevTools said:

@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!

# December 3, 2008 9:36 PM

ScottGu's Blog em Português said:

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

# December 3, 2008 10:12 PM

sliderhouserules said:

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.

# December 4, 2008 2:32 PM

WebDevTools said:

@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!

# December 4, 2008 2:44 PM

不懂.NET said:

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

# December 15, 2008 12:08 AM

Iliya Tretyakov said:

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

I'm cry.

# December 24, 2008 1:55 AM

Iliya Tretyakov said:

For Web-resources or Embedded Resource

/// <reference path="~/jquery-1.2.6.js" />

is useless.

# December 24, 2008 2:33 AM

jojobar said:

I installed it on the 64 bit edition in 2008, the intellisense is working fine if I put the javascript embedded in the html/aspx file but does not work fully if I put it on a separate .js file.

Thanks

# December 28, 2008 4:20 PM

WebDevTools said:

@jojobar: Could you post/share the syntax you used and the relative file location of the script?  Often times there's a problem with the syntax.  Thanks!

# January 5, 2009 5:26 PM

if ( ! blogClogged ) said:

I started this last week working with jQuery with ASP.NET. I have a different post in process that discusses

# January 17, 2009 8:37 AM

jamin said:

原文地址】jQueryIntellisenseinVS2008

【原文发表日期】Friday,November21,20082:07AM

上个月,我在博客里宣布了微软将对jQ...

# January 19, 2009 10:54 PM

Madhu Rajagopalan's Blog said:

JQuery IntelliSense in VS 2008

# January 22, 2009 8:45 PM

geff zhang said:

Microsoft 现在完全支持 jQuery 并将它集成在ASP.NET MVC 框架。jQuery-vsdoc.js文件,该文件对串连的jQuery selector方法的JavaScript i

# March 28, 2009 11:13 AM

cdboy said:

RichIntelliSenseforjQueryUpdate:AnewHotfixisavailbletocomplementthisfile.Awhileback...

# April 1, 2009 10:12 AM

梦想 said:

上个月,我在博客里宣布了微软将对jQuery提供支持。在过去的几个星期里,我们与jQuery开发团队合作,在Studio2008和VisualWebDeveloper2008Expres...

# April 26, 2009 12:15 PM

awp110 said:

本系列文章导航

从零开始学习jQuery(一)开天辟地入门篇

从零开始学习jQuery(二)万能的选择器

# May 4, 2009 9:40 AM

h-hello said:

一.摘要

本系列文章将带您进入jQuery的精彩世界,其中有很多作者具体的使用经验和解决方案,

# May 5, 2009 6:04 AM

夜半松风 said:

一.摘要

本系列文章将带您进入jQuery的精彩世界,其中有很多作者具体的使用经验和解决方案,

# May 22, 2009 10:06 PM

夜半松风 said:

一.摘要

本系列文章将带您进入jQuery的精彩世界,其中有很多作者具体的使用经验和解决方案,

# May 22, 2009 10:07 PM

陈希章 said:

http://www.cnblogs.com/tonybinlj/archive/2009/05/26/1490434.html 启用Visual Studio 对jQuery的智能感知 首先看一下...

# May 26, 2009 7:42 PM

::似水无痕:: said:

jQuery,很早我就知道有这么一套脚本库了,资料也不知不觉的收集了一大堆,但是没有认真看过,一是贪玩,二是没有这方面的需求。“没有压力就没有动力”,有压力,人们才会有动力,有压力,才能促使我们不断进...

# June 15, 2009 6:59 AM
New Comments to this post are disabled
Page view tracker